ElementEntity

class \TYPO3\CMS\Workspaces\Dependency\ElementEntity

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

Table of Contents

Constants

REFERENCES_ChildOf  : mixed = 'childOf'
REFERENCES_ParentOf  : mixed = 'parentOf'

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
getChildren()  : ReferenceEntity[]
Gets all child references.
getData()  : array
getDataValue()  : mixed
getDependency()  : DependencyResolver
getId()  : int
getNestedChildren()  : ElementEntity[]
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
hasDataValue()  : bool
hasReferences()  : bool
Determines whether there are child or parent references.
isInvalid()  : bool
setDataValue()  : void
setId()  : void
setInvalid()  : void

Constants

REFERENCES_ChildOf

public mixed REFERENCES_ChildOf = 'childOf'

REFERENCES_ParentOf

public mixed REFERENCES_ParentOf = 'parentOf'

Properties

$nestedChildren

protected array|null $nestedChildren

Methods

__toString()

public __toString() : string

Return values

string

getData()

public getData() : array

Return values

array

getDataValue()

public getDataValue(string $key) : mixed

Parameters

$key : string

getId()

public getId() : int

Return values

int

getRecord()

Gets the database record of this element.

public getRecord() : array

Return values

array

getTable()

public getTable() : string

Return values

string

hasDataValue()

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()

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

Parameters

$key : string
$value : mixed

setId()

public setId(int $id) : void

Parameters

$id : int

setInvalid()

public setInvalid(bool $invalid) : void

Parameters

$invalid : bool
On this page