DomainObjectInterface extends ObjectMonitoringInterface
A Domain Object Interface. All domain objects which should be persisted need to implement the below interface.
Usually you will need to subclass \TYPO3\CMS\Extbase\DomainObject\AbstractEntity and \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject instead.
only to be used within Extbase, not part of TYPO3 Core API.
Tags
Table of Contents
Methods
- _getCleanProperty() : mixed
- Returns the clean value of the given property. The returned value will be NULL if the clean state was not memorized before, or if the clean value is NULL.
- _getProperties() : array<non-empty-string, mixed>
- _getProperty() : mixed
- _hasProperty() : bool
- _isDirty() : bool
- Returns TRUE if the properties were modified after reconstitution
- _isNew() : bool
- Returns TRUE if the object is new (the uid was not set, yet). Only for internal use
- _memorizeCleanState() : void
- Register an object's clean state, e.g. after it has been reconstituted from the database
- _setProperty() : mixed
- getPid() : int|null
- getUid() : int|null
- setPid() : mixed
Methods
_getCleanProperty()
Returns the clean value of the given property. The returned value will be NULL if the clean state was not memorized before, or if the clean value is NULL.
    public
                    _getCleanProperty(non-empty-string $propertyName) : mixed
    Parameters
- $propertyName : non-empty-string
Return values
mixed —The clean property value or NULL
_getProperties()
    public
                    _getProperties() : array<non-empty-string, mixed>
    Return values
array<non-empty-string, mixed>_getProperty()
    public
                    _getProperty(non-empty-string $propertyName) : mixed
    Parameters
- $propertyName : non-empty-string
_hasProperty()
    public
                    _hasProperty(non-empty-string $propertyName) : bool
    Parameters
- $propertyName : non-empty-string
Return values
bool_isDirty()
Returns TRUE if the properties were modified after reconstitution
    public
                    _isDirty([non-empty-string|null $propertyName = null ]) : bool
    Parameters
- $propertyName : non-empty-string|null = null
Return values
bool_isNew()
Returns TRUE if the object is new (the uid was not set, yet). Only for internal use
    public
                    _isNew() : bool
    Return values
bool_memorizeCleanState()
Register an object's clean state, e.g. after it has been reconstituted from the database
    public
                    _memorizeCleanState([non-empty-string|null $propertyName = null ]) : void
    Parameters
- $propertyName : non-empty-string|null = null
_setProperty()
    public
                    _setProperty(non-empty-string $propertyName, mixed $value) : mixed
    Parameters
- $propertyName : non-empty-string
- $value : mixed
getPid()
    public
                    getPid() : int|null
    Return values
int|nullgetUid()
    public
                    getUid() : int|null
    Return values
int|nullsetPid()
    public
                    setPid(int $pid) : mixed
    Parameters
- $pid : int