TYPO3 CMS  TYPO3_7-6
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\BlogExample\Domain\Model\Blog ExtbaseTeam\BlogExample\Domain\Model\Comment ExtbaseTeam\BlogExample\Domain\Model\DateExample ExtbaseTeam\BlogExample\Domain\Model\Person ExtbaseTeam\BlogExample\Domain\Model\Post ExtbaseTeam\BlogExample\Domain\Model\TtContent OliverHader\IrreTutorial\Domain\Model\Content OliverHader\IrreTutorial\Domain\Model\Hotel OliverHader\IrreTutorial\Domain\Model\Offer OliverHader\IrreTutorial\Domain\Model\Price TYPO3\CMS\About\Domain\Model\Extension TYPO3\CMS\Belog\Domain\Model\Constraint TYPO3\CMS\Belog\Domain\Model\HistoryEntry TYPO3\CMS\Belog\Domain\Model\LogEntry TYPO3\CMS\Belog\Domain\Model\Workspace TYPO3\CMS\Beuser\Domain\Model\BackendUserGroup TYPO3\CMS\Beuser\Domain\Model\Demand TYPO3\CMS\Documentation\Domain\Model\Document TYPO3\CMS\Documentation\Domain\Model\DocumentFormat TYPO3\CMS\Documentation\Domain\Model\DocumentTranslation TYPO3\CMS\Extbase\Domain\Model\AbstractFileCollection 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\FileMount 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\Model\Entity2 TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Model\Entity3 TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\Fixtures\PersistentObjectEntityFixture TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationCategory TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationItem TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationSubcategory TYPO3\CMS\Extensionmanager\Domain\Model\Dependency TYPO3\CMS\Extensionmanager\Domain\Model\Extension TYPO3\CMS\Extensionmanager\Domain\Model\Mirrors TYPO3\CMS\Extensionmanager\Domain\Model\Repository TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Form\Fixtures\ExtendsAbstractEntity TYPO3\CMS\Form\Domain\Model\Element TYPO3\CMS\Form\Domain\Model\ValidationElement TYPO3\CMS\Lang\Domain\Model\Extension TYPO3\CMS\Lang\Domain\Model\Language TYPO3\CMS\SysNote\Domain\Model\SysNote 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

Public Member Functions

 getUid ()
 
 setPid ($pid)
 
 getPid ()
 
 _isNew ()
 
 _setProperty ($propertyName, $value)
 
 _getProperty ($propertyName)
 
 _getProperties ()
 
 _getCleanProperty ($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 and instead.

See also

Definition at line 25 of file DomainObjectInterface.php.

Member Function Documentation

◆ _getCleanProperty()

TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_getCleanProperty (   $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$propertyNameThe name of the property to be memorized.
Returns
mixed The clean property value or NULL

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

◆ _getProperties()

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.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper\thawProperties().

◆ _getProperty()

TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_getProperty (   $propertyName)

Returns the property value of the given property name. Only for internal use.

Parameters
string$propertyName
Returns
mixed The propertyValue

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

◆ _isNew()

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.

◆ _setProperty()

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

Reconstitutes a property. Only for internal use.

Parameters
string$propertyName
string$value
Returns
void

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

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper\thawProperties().

◆ getPid()

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

Getter for the pid.

Returns
int The pid or NULL if none set yet.

Implemented in TYPO3\CMS\Belog\Domain\Model\LogEntry, TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject, and ExtbaseTeam\BlogExample\Domain\Model\TtContent.

◆ getUid()

TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::getUid ( )

Getter for uid.

Returns
int The uid or NULL if none set yet.

Implemented in TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject, and ExtbaseTeam\BlogExample\Domain\Model\TtContent.

◆ setPid()

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

Setter for the pid.

Parameters
int$pid
Returns
void

Implemented in TYPO3\CMS\Belog\Domain\Model\LogEntry, and TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.