TYPO3  7.6
Public Member Functions | List of all members
DomainObjectInterface Interface Reference
Inheritance diagram for DomainObjectInterface:
AbstractDomainObject AbstractEntity AbstractValueObject Extension Constraint HistoryEntry LogEntry Workspace BackendUserGroup Demand Document DocumentFormat DocumentTranslation AbstractFileCollection AbstractFileFolder BackendUser BackendUserGroup Category FileMount FrontendUser FrontendUserGroup ConfigurationCategory ConfigurationItem ConfigurationSubcategory Dependency Extension Mirrors Repository ExtendsAbstractEntity Element ValidationElement Extension Language SysNote

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 (   $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 AbstractDomainObject.

_getProperties ( )

Returns a hash map of property names and property values

Returns
array The properties

Implemented in AbstractDomainObject.

Referenced by DataMapper\thawProperties().

_getProperty (   $propertyName)

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

Parameters
string$propertyName
Returns
mixed The propertyValue

Implemented in AbstractDomainObject.

_isNew ( )

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

Returns
bool

Implemented in AbstractDomainObject.

_setProperty (   $propertyName,
  $value 
)

Reconstitutes a property. Only for internal use.

Parameters
string$propertyName
string$value
Returns
void

Implemented in AbstractDomainObject.

Referenced by DataMapper\thawProperties().

getPid ( )

Getter for the pid.

Returns
int The pid or NULL if none set yet.

Implemented in LogEntry, and AbstractDomainObject.

getUid ( )

Getter for uid.

Returns
int The uid or NULL if none set yet.

Implemented in AbstractDomainObject.

setPid (   $pid)

Setter for the pid.

Parameters
int$pid
Returns
void

Implemented in LogEntry, and AbstractDomainObject.