DomainObjectInterface

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.

Tags
see
AbstractEntity
see
AbstractValueObject

Table of Contents

Methods

_getCleanProperty()  : mixed
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.
_getProperties()  : array<string|int, mixed>
Returns a hash map of property names and property values
_getProperty()  : mixed
Returns the property value of the given property name. Only for internal use.
_isNew()  : bool
Returns TRUE if the object is new (the uid was not set, yet). Only for internal use
_setProperty()  : mixed
Reconstitutes a property. Only for internal use.
getPid()  : int
Getter for the pid.
getUid()  : int
Getter for uid.
setPid()  : mixed
Setter for the pid.

Methods

_getCleanProperty()

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.

public _getCleanProperty(string $propertyName) : mixed
Parameters
$propertyName : string

The name of the property to be memorized.

Internal
Return values
mixed

The clean property value or NULL

_getProperties()

Returns a hash map of property names and property values

public _getProperties() : array<string|int, mixed>
Internal
Return values
array<string|int, mixed>

The properties

_getProperty()

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

public _getProperty(string $propertyName) : mixed
Parameters
$propertyName : string
Internal
Return values
mixed

The propertyValue

_isNew()

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

public _isNew() : bool
Internal
Return values
bool

_setProperty()

Reconstitutes a property. Only for internal use.

public _setProperty(string $propertyName, mixed $value) : mixed
Parameters
$propertyName : string
$value : mixed
Internal

getPid()

Getter for the pid.

public getPid() : int
Return values
int

The pid or NULL if none set yet.

getUid()

Getter for uid.

public getUid() : int
Return values
int

The uid or NULL if none set yet.

setPid()

Setter for the pid.

public setPid(int $pid) : mixed
Parameters
$pid : int

        
On this page

Search results