ElementEntity

class \TYPO3\CMS\Workspaces\Dependency\ElementEntity

Object to hold information on a dependent database element in abstract.

Table of Contents

Constants

EVENT_Construct  : mixed = 'TYPO3\CMS\Version\Dependency\ElementEntity::co...
EVENT_CreateChildReference  : mixed = 'TYPO3\CMS\Version\Dependency\ElementEntity::cr...
EVENT_CreateParentReference  : mixed = 'TYPO3\CMS\Version\Dependency\ElementEntity::cr...
REFERENCES_ChildOf  : mixed = 'childOf'
REFERENCES_ParentOf  : mixed = 'parentOf'
RESPONSE_Skip  : mixed = 'TYPO3\CMS\Version\Dependency\ElementEntity->skip'

Properties

$children  : array|null
$data  : array
$dependency  : DependencyResolver
$id  : int
$invalid  : bool
$nestedChildren  : array|null
$outerMostParent  : ElementEntity|false|null
$parents  : array|null
$record  : array
$table  : string

Methods

__construct()  : mixed
__toString()  : string
Converts this object for string representation.
getChildren()  : ReferenceEntity[]
Gets all child references.
getData()  : array
Gets the data.
getDataValue()  : mixed
Gets a value for a particular key from the data.
getDependency()  : DependencyResolver
Gets the parent dependency object.
getId()  : int
Gets the id.
getIdentifier()  : string
Converts the object for string representation.
getNestedChildren()  : ReferenceEntity[]
Gets nested children accumulated.
getOuterMostParent()  : false|ElementEntity
Gets the outermost parent element.
getParents()  : ReferenceEntity[]
Gets all parent references.
getRecord()  : array
Gets the database record of this element.
getTable()  : string
Gets the table.
hasDataValue()  : bool
Determines whether a particular key holds data.
hasReferences()  : bool
Determines whether there are child or parent references.
isInvalid()  : bool
setDataValue()  : void
Sets a value for a particular key in the data.
setId()  : void
Sets the id.
setInvalid()  : void

Constants

EVENT_Construct

public mixed EVENT_Construct = 'TYPO3\CMS\Version\Dependency\ElementEntity::construct'

EVENT_CreateChildReference

public mixed EVENT_CreateChildReference = 'TYPO3\CMS\Version\Dependency\ElementEntity::createChildReference'

EVENT_CreateParentReference

public mixed EVENT_CreateParentReference = 'TYPO3\CMS\Version\Dependency\ElementEntity::createParentReference'

REFERENCES_ChildOf

public mixed REFERENCES_ChildOf = 'childOf'

REFERENCES_ParentOf

public mixed REFERENCES_ParentOf = 'parentOf'

RESPONSE_Skip

public mixed RESPONSE_Skip = 'TYPO3\CMS\Version\Dependency\ElementEntity->skip'

Properties

$nestedChildren

protected array|null $nestedChildren

Methods

__toString()

Converts this object for string representation.

public __toString() : string

Return values

string

getData()

Gets the data.

public getData() : array

Return values

array

getDataValue()

Gets a value for a particular key from the data.

public getDataValue(string $key) : mixed

Parameters

$key : string

getId()

Gets the id.

public getId() : int

Return values

int

getIdentifier()

Converts the object for string representation.

public static getIdentifier(string $table, int $id) : string

Parameters

$table : string
$id : int

Return values

string

getRecord()

Gets the database record of this element.

public getRecord() : array

Return values

array

getTable()

Gets the table.

public getTable() : string

Return values

string

hasDataValue()

Determines whether a particular key holds data.

public hasDataValue(string $key) : bool

Parameters

$key : string

Return values

bool

hasReferences()

Determines whether there are child or parent references.

public hasReferences() : bool

Return values

bool

isInvalid()

public isInvalid() : bool

Return values

bool

setDataValue()

Sets a value for a particular key in the data.

public setDataValue(string $key, mixed $value) : void

Parameters

$key : string
$value : mixed

setId()

Sets the id.

public setId(int $id) : void

Parameters

$id : int

setInvalid()

public setInvalid(bool $invalid) : void

Parameters

$invalid : bool
On this page