TYPO3
7.6
|
Public Member Functions | |
__wakeup () | |
getUid () | |
setPid ($pid) | |
getPid () | |
_setProperty ($propertyName, $propertyValue) | |
_getProperty ($propertyName) | |
_getProperties () | |
_hasProperty ($propertyName) | |
_isNew () | |
_memorizeCleanState ($propertyName=null) | |
_memorizePropertyCleanState ($propertyName) | |
_getCleanProperties () | |
_getCleanProperty ($propertyName) | |
_isDirty ($propertyName=null) | |
_isClone () | |
_setClone ($clone) | |
__clone () | |
__toString () | |
Public Member Functions inherited from ObjectMonitoringInterface | |
_memorizeCleanState () | |
_isDirty () | |
Protected Member Functions | |
isPropertyDirty ($previousValue, $currentValue) | |
Protected Attributes | |
$uid | |
$_localizedUid | |
$_languageUid | |
$_versionedUid | |
$pid | |
Private Attributes | |
$_isClone = false | |
$_cleanProperties = array() | |
All Model domain objects need to inherit from either AbstractEntity or AbstractValueObject, as this provides important framework information.
Definition at line 24 of file AbstractDomainObject.php.
__clone | ( | ) |
Clone method. Sets the _isClone property.
Definition at line 336 of file AbstractDomainObject.php.
References AbstractDomainObject\_isClone().
__toString | ( | ) |
Returns the class name and the uid of the object as string
Definition at line 346 of file AbstractDomainObject.php.
Referenced by AbstractValueObject\getValue().
__wakeup | ( | ) |
This is the magic __wakeup() method. It's invoked by the unserialize statement in the reconstitution process of the object. If you want to implement your own __wakeup() method in your Domain Object you have to call parent::__wakeup() first!
Definition at line 71 of file AbstractDomainObject.php.
References GeneralUtility\logDeprecatedFunction().
_getCleanProperties | ( | ) |
Returns a hash map of clean properties and $values.
Definition at line 238 of file AbstractDomainObject.php.
References AbstractDomainObject\$_cleanProperties.
Referenced by AbstractDomainObject\_isDirty().
_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.
string | $propertyName | The name of the property to be memorized. |
Implements DomainObjectInterface.
Definition at line 250 of file AbstractDomainObject.php.
Referenced by AbstractDomainObject\_isDirty().
_getProperties | ( | ) |
Returns a hash map of property names and property values. Only for internal use.
Implements DomainObjectInterface.
Definition at line 151 of file AbstractDomainObject.php.
_getProperty | ( | $propertyName | ) |
Returns the property value of the given property name. Only for internal use.
string | $propertyName |
Implements DomainObjectInterface.
Definition at line 141 of file AbstractDomainObject.php.
_hasProperty | ( | $propertyName | ) |
Returns the property value of the given property name. Only for internal use.
string | $propertyName |
Definition at line 168 of file AbstractDomainObject.php.
Referenced by AbstractDomainObject\_setProperty().
_isClone | ( | ) |
Returns TRUE if the object has been clonesd, cloned, FALSE otherwise.
Definition at line 313 of file AbstractDomainObject.php.
References AbstractDomainObject\$_isClone.
Referenced by AbstractDomainObject\__clone(), and AbstractDomainObject\_setClone().
_isDirty | ( | $propertyName = null | ) |
Returns TRUE if the properties were modified after reconstitution
string | $propertyName | An optional name of a property to be checked if its value is dirty |
\TYPO3\CMS\Extbase\Persistence\Generic\Exception\TooDirtyException |
Definition at line 262 of file AbstractDomainObject.php.
References AbstractDomainObject\_getCleanProperties(), AbstractDomainObject\_getCleanProperty(), and AbstractDomainObject\isPropertyDirty().
_isNew | ( | ) |
Returns TRUE if the object is new (the uid was not set, yet). Only for internal use
Implements DomainObjectInterface.
Definition at line 178 of file AbstractDomainObject.php.
_memorizeCleanState | ( | $propertyName = null | ) |
Register an object's clean state, e.g. after it has been reconstituted from the database.
string | $propertyName | The name of the property to be memorized. If omitted all persistable properties are memorized. |
Definition at line 190 of file AbstractDomainObject.php.
References AbstractDomainObject\_memorizePropertyCleanState().
_memorizePropertyCleanState | ( | $propertyName | ) |
Register an properties's clean state, e.g. after it has been reconstituted from the database.
string | $propertyName | The name of the property to be memorized. If omittet all persistable properties are memorized. |
Definition at line 214 of file AbstractDomainObject.php.
Referenced by AbstractDomainObject\_memorizeCleanState().
_setClone | ( | $clone | ) |
Setter whether this Domain Object is a clone of another one. NEVER SET THIS PROPERTY DIRECTLY. We currently need it to make the _isDirty check inside AbstractEntity work, but it is just a work- around right now.
bool | $clone |
Definition at line 326 of file AbstractDomainObject.php.
References AbstractDomainObject\_isClone().
_setProperty | ( | $propertyName, | |
$propertyValue | |||
) |
Reconstitutes a property. Only for internal use.
string | $propertyName | |
mixed | $propertyValue |
Implements DomainObjectInterface.
Definition at line 126 of file AbstractDomainObject.php.
References AbstractDomainObject\_hasProperty().
getPid | ( | ) |
Getter for the pid.
Implements DomainObjectInterface.
Definition at line 110 of file AbstractDomainObject.php.
References AbstractDomainObject\$pid.
getUid | ( | ) |
Getter for uid.
Implements DomainObjectInterface.
Definition at line 81 of file AbstractDomainObject.php.
References AbstractDomainObject\$uid.
Referenced by ExtensionManagementService\downloadMainExtension(), BackendUserSessionRepository\findByBackendUser(), File\getOriginalResource(), FileReference\getOriginalResource(), and BackendUser\isCurrentlyLoggedIn().
|
protected |
Checks the $value against the $cleanState.
mixed | $previousValue | |
mixed | $currentValue |
Definition at line 289 of file AbstractDomainObject.php.
References elseif.
Referenced by AbstractDomainObject\_isDirty().
setPid | ( | $pid | ) |
Setter for the pid.
int | NULL | $pid |
Implements DomainObjectInterface.
Definition at line 96 of file AbstractDomainObject.php.
References AbstractDomainObject\$pid.
|
private |
Definition at line 61 of file AbstractDomainObject.php.
Referenced by AbstractDomainObject\_getCleanProperties().
|
private |
Definition at line 56 of file AbstractDomainObject.php.
Referenced by AbstractDomainObject\_isClone().
|
protected |
Definition at line 39 of file AbstractDomainObject.php.
|
protected |
Definition at line 34 of file AbstractDomainObject.php.
|
protected |
Definition at line 44 of file AbstractDomainObject.php.
|
protected |
Definition at line 49 of file AbstractDomainObject.php.
Referenced by AbstractDomainObject\getPid(), and AbstractDomainObject\setPid().
|
protected |
Definition at line 29 of file AbstractDomainObject.php.
Referenced by AbstractDomainObject\getUid().