‪TYPO3CMS  ‪main
TYPO3\CMS\Workspaces\Dependency\ElementEntity Class Reference

Public Member Functions

 __construct (string $table, int $id, array $data, DependencyResolver $dependency)
 
 setInvalid (bool $invalid)
 
 isInvalid ()
 
 getTable ()
 
 getId ()
 
 setId (int $id)
 
 getData ()
 
 getDataValue (string $key)
 
 setDataValue (string $key, mixed $value)
 
 hasDataValue (string $key)
 
 __toString ()
 
 getDependency ()
 
ReferenceEntity[] getChildren ()
 
ReferenceEntity[] getParents ()
 
 hasReferences ()
 
 getOuterMostParent ()
 
ReferenceEntity[] getNestedChildren ()
 
 getRecord ()
 

Static Public Member Functions

static getIdentifier (string $table, int $id)
 

Public Attributes

const REFERENCES_ChildOf = 'childOf'
 
const REFERENCES_ParentOf = 'parentOf'
 
const EVENT_Construct = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::construct'
 
const EVENT_CreateChildReference = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::createChildReference'
 
const EVENT_CreateParentReference = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::createParentReference'
 
const RESPONSE_Skip = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity->skip'
 

Protected Attributes

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

Detailed Description

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

Definition at line 29 of file ElementEntity.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ __toString()

◆ getChildren()

◆ getData()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::getData ( )

Gets the data.

Definition at line 96 of file ElementEntity.php.

References TYPO3\CMS\Workspaces\Dependency\ElementEntity\$data.

◆ getDataValue()

◆ getDependency()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::getDependency ( )

◆ getId()

◆ getIdentifier()

static TYPO3\CMS\Workspaces\Dependency\ElementEntity::getIdentifier ( string  $table,
int  $id 
)
static

◆ getNestedChildren()

◆ getOuterMostParent()

◆ getParents()

◆ getRecord()

◆ getTable()

◆ hasDataValue()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::hasDataValue ( string  $key)

◆ hasReferences()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::hasReferences ( )

◆ isInvalid()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::isInvalid ( )

◆ setDataValue()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::setDataValue ( string  $key,
mixed  $value 
)

Sets a value for a particular key in the data.

Definition at line 116 of file ElementEntity.php.

Referenced by TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\createNewDependentElementCallback().

◆ setId()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::setId ( int  $id)

◆ setInvalid()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::setInvalid ( bool  $invalid)

Member Data Documentation

◆ $children

array TYPO3\CMS\Workspaces\Dependency\ElementEntity::$children
protected

◆ $data

array TYPO3\CMS\Workspaces\Dependency\ElementEntity::$data
protected

◆ $dependency

DependencyResolver TYPO3\CMS\Workspaces\Dependency\ElementEntity::$dependency
protected

◆ $id

◆ $invalid

bool TYPO3\CMS\Workspaces\Dependency\ElementEntity::$invalid = false
protected

◆ $nestedChildren

array TYPO3\CMS\Workspaces\Dependency\ElementEntity::$nestedChildren
protected

◆ $outerMostParent

ElementEntity false null TYPO3\CMS\Workspaces\Dependency\ElementEntity::$outerMostParent
protected

◆ $parents

array TYPO3\CMS\Workspaces\Dependency\ElementEntity::$parents
protected

◆ $record

array TYPO3\CMS\Workspaces\Dependency\ElementEntity::$record
protected

◆ $table

◆ EVENT_Construct

const TYPO3\CMS\Workspaces\Dependency\ElementEntity::EVENT_Construct = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::construct'

◆ EVENT_CreateChildReference

const TYPO3\CMS\Workspaces\Dependency\ElementEntity::EVENT_CreateChildReference = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::createChildReference'

◆ EVENT_CreateParentReference

const TYPO3\CMS\Workspaces\Dependency\ElementEntity::EVENT_CreateParentReference = 'TYPO3\\CMS\\Version\\Dependency\\ElementEntity::createParentReference'

◆ REFERENCES_ChildOf

const TYPO3\CMS\Workspaces\Dependency\ElementEntity::REFERENCES_ChildOf = 'childOf'

◆ REFERENCES_ParentOf

const TYPO3\CMS\Workspaces\Dependency\ElementEntity::REFERENCES_ParentOf = 'parentOf'

◆ RESPONSE_Skip