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

Public Member Functions

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

Static Public Member Functions

static string getIdentifier ($table, $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
 
bool $traversingParents = false
 
ElementEntity $outerMostParent
 
array $nestedChildren
 

Detailed Description

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

Definition at line 24 of file ElementEntity.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::__construct (   $table,
  $id,
array  $data,
DependencyResolver  $dependency 
)

Member Function Documentation

◆ __toString()

◆ getChildren()

◆ getData()

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

Gets the data.

Returns
‪array

Definition at line 145 of file ElementEntity.php.

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

◆ getDataValue()

◆ getDependency()

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

◆ getId()

◆ getIdentifier()

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

◆ getNestedChildren()

array ReferenceEntity [] TYPO3\CMS\Workspaces\Dependency\ElementEntity::getNestedChildren ( )

◆ getOuterMostParent()

◆ getParents()

◆ getRecord()

array TYPO3\CMS\Workspaces\Dependency\ElementEntity::getRecord ( )

◆ getTable()

◆ hasDataValue()

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

Determines whether a particular key holds data.

Parameters
string$key
Returns
‪bool

Definition at line 182 of file ElementEntity.php.

Referenced by TYPO3\CMS\Workspaces\Dependency\ElementEntityProcessor\createNewDependentElementCallback(), and TYPO3\CMS\Workspaces\Dependency\ElementEntity\getDataValue().

◆ hasReferences()

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

◆ isInvalid()

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

◆ setDataValue()

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

Sets a value for a particular key in the data.

Parameters
string$key
mixed$value

Definition at line 171 of file ElementEntity.php.

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

◆ setId()

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

◆ setInvalid()

TYPO3\CMS\Workspaces\Dependency\ElementEntity::setInvalid (   $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 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

◆ $traversingParents

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

Definition at line 67 of file ElementEntity.php.

◆ 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