TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface:
Tx_Extbase_DomainObject_DomainObjectInterface TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject t3lib_object_tests_initializable Tx_Extbase_DomainObject_AbstractDomainObject TYPO3\CMS\Extbase\DomainObject\AbstractEntity TYPO3\CMS\Extbase\DomainObject\AbstractValueObject ExtbaseTeam\BlogExample\Domain\Model\Blog ExtbaseTeam\BlogExample\Domain\Model\Comment ExtbaseTeam\BlogExample\Domain\Model\Person ExtbaseTeam\BlogExample\Domain\Model\Post OliverHader\IrreTutorial\Domain\Model\Content OliverHader\IrreTutorial\Domain\Model\Hotel OliverHader\IrreTutorial\Domain\Model\Offer OliverHader\IrreTutorial\Domain\Model\Price Tx_Extbase_DomainObject_AbstractEntity 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\Persistence\Fixture\Model\Entity2 TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Model\Entity3 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\Lang\Domain\Model\Extension TYPO3\CMS\Lang\Domain\Model\Language TYPO3\CMS\Lang\Domain\Model\LanguageSelectionForm TYPO3\CMS\Lang\Domain\Model\UpdateTranslationForm TYPO3\CMS\SysNote\Domain\Model\SysNote ExtbaseTeam\BlogExample\Domain\Model\Tag Tx_Extbase_DomainObject_AbstractValueObject TYPO3\CMS\Extbase\Tests\Fixture\ValueObject

Public Member Functions

 getUid ()
 
 setPid ($pid)
 
 getPid ()
 
 _isNew ()
 
 _setProperty ($propertyName, $value)
 
 _getProperty ($propertyName)
 
 _getProperties ()
 
 _getCleanProperty ($propertyName)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! 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 24 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.

◆ _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
boolean

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.

◆ getPid()

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

Getter for the pid.

Returns
integer The pid or NULL if none set yet.

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

◆ getUid()

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

Getter for uid.

Returns
integer The uid or NULL if none set yet.

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

◆ setPid()

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

Setter for the pid.

Parameters
integer$pid
Returns
void

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