‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface:
TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject t3lib_object_tests_initializable TYPO3\CMS\Extbase\DomainObject\AbstractEntity TYPO3\CMS\Extbase\DomainObject\AbstractValueObject ExtbaseTeam\A\Domain\Model\A ExtbaseTeam\ActionControllerArgumentTest\Domain\Model\Model ExtbaseTeam\ActionControllerTest\Domain\Model\Model ExtbaseTeam\BlogExample\Domain\Model\Administrator ExtbaseTeam\BlogExample\Domain\Model\Blog ExtbaseTeam\BlogExample\Domain\Model\Category ExtbaseTeam\BlogExample\Domain\Model\Comment ExtbaseTeam\BlogExample\Domain\Model\DateExample ExtbaseTeam\BlogExample\Domain\Model\DateTimeImmutableExample ExtbaseTeam\BlogExample\Domain\Model\FrontendUserGroup ExtbaseTeam\BlogExample\Domain\Model\Info ExtbaseTeam\BlogExample\Domain\Model\Person ExtbaseTeam\BlogExample\Domain\Model\Post ExtbaseTeam\BlogExample\Domain\Model\TtContent ExtbaseTeam\TestValidators\Domain\Model\AnotherModel ExtbaseTeam\TestValidators\Domain\Model\Model TYPO3\CMS\Belog\Domain\Model\LogEntry TYPO3\CMS\Belog\Domain\Model\Workspace TYPO3\CMS\Beuser\Domain\Model\BackendUser TYPO3\CMS\Beuser\Domain\Model\BackendUserGroup TYPO3\CMS\Extbase\Domain\Model\AbstractFileFolder TYPO3\CMS\Extbase\Domain\Model\BackendUser TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup TYPO3\CMS\Extbase\Domain\Model\Category TYPO3\CMS\Extbase\Domain\Model\FrontendUser TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup TYPO3\CMS\Extbase\Tests\Fixture\Entity TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\Fixtures\EntityFixture TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Model\A TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Model\Entity TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Model\Entity2 TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Model\Entity3 TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\Mapper\Fixture\DummyChildEntity TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\Mapper\Fixture\DummyEntity TYPO3\CMS\Extbase\Tests\Unit\Persistence\Generic\Mapper\Fixture\DummyParentEntity TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\Fixtures\PersistentObjectEntityFixture TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfProperties TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyEntity TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyModel TYPO3\CMS\Extbase\Tests\UnitDeprecated\Reflection\Fixture\DummyClassWithAllTypesOfProperties TYPO3\CMS\Extensionmanager\Domain\Model\Extension TYPO3\CMS\Fluid\Tests\Functional\Fixtures\ViewHelpers\ExtendsAbstractEntity TYPO3\TestIrreForeignfield\Domain\Model\Content TYPO3\TestIrreForeignfield\Domain\Model\Hotel TYPO3\TestIrreForeignfield\Domain\Model\Offer TYPO3\TestIrreForeignfield\Domain\Model\Price TYPO3Tests\ParentChildTranslation\Domain\Model\Child TYPO3Tests\ParentChildTranslation\Domain\Model\Main TYPO3Tests\ParentChildTranslation\Domain\Model\Squeeze ExtbaseTeam\BlogExample\Domain\Model\RegistryEntry ExtbaseTeam\BlogExample\Domain\Model\Tag TYPO3\CMS\Extbase\Tests\Fixture\ValueObject TYPO3\CMS\Extbase\Tests\Unit\Mvc\Web\Routing\Fixtures\ValueObjectFixture TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\Fixtures\PersistentObjectValueObjectFixture TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyValueObject

Public Member Functions

int getUid ()
 
 setPid (int $pid)
 
int getPid ()
 
bool _isNew ()
 
 _setProperty (string $propertyName, $value)
 
mixed _getProperty (string $propertyName)
 
array _getProperties ()
 
mixed _getCleanProperty (string $propertyName)
 

Detailed Description

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.

See also
‪\TYPO3\CMS\Extbase\DomainObject\AbstractEntity
‪\TYPO3\CMS\Extbase\DomainObject\AbstractValueObject

Definition at line 28 of file DomainObjectInterface.php.

Member Function Documentation

◆ _getCleanProperty()

mixed TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_getCleanProperty ( string  $propertyName)

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.

Parameters
string$propertyName‪The name of the property to be memorized.
Returns
‪mixed The clean property value or NULL

Implemented in TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Backend\getRemovedChildObjects(), and TYPO3\CMS\Extbase\Persistence\Generic\Backend\persistObjectStorage().

◆ _getProperties()

array TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_getProperties ( )

Returns a hash map of property names and property values

Returns
‪array The properties

Implemented in TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.

◆ _getProperty()

◆ _isNew()

bool TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_isNew ( )

Returns TRUE if the object is new (the uid was not set, yet). Only for internal use

Returns
‪bool

Implemented in TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Backend\addCommonDateFieldsToRow(), and TYPO3\CMS\Extbase\Persistence\Generic\Backend\addCommonFieldsToRow().

◆ _setProperty()

TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_setProperty ( string  $propertyName,
  $value 
)

Reconstitutes a property. Only for internal use.

Parameters
string$propertyName
mixed$value

Implemented in TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Backend\insertObject(), and TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper\thawProperties().

◆ getPid()

int TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::getPid ( )

Getter for the pid.

Returns
‪int The pid or NULL if none set yet.

Implemented in TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.

◆ getUid()

◆ setPid()

TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::setPid ( int  $pid)