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

Public Member Functions

 getElement (string $table, int $id, array $data, DependencyResolver $dependency)
 
 getReference (ElementEntity $element, string $field)
 
 getReferencedElement (string $table, int $id, string $field, array $data, DependencyResolver $dependency)
 

Protected Attributes

array $elements = []
 
array $references = []
 

Detailed Description

Object to create and keep track of element or reference entities.

Definition at line 27 of file DependencyEntityFactory.php.

Member Function Documentation

◆ getElement()

TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::getElement ( string  $table,
int  $id,
array  $data,
DependencyResolver  $dependency 
)

Gets and registers a new element.

Definition at line 35 of file DependencyEntityFactory.php.

Referenced by TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory\getReferencedElement().

◆ getReference()

TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::getReference ( ElementEntity  $element,
string  $field 
)

◆ getReferencedElement()

TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::getReferencedElement ( string  $table,
int  $id,
string  $field,
array  $data,
DependencyResolver  $dependency 
)

Member Data Documentation

◆ $elements

array TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::$elements = []
protected

Definition at line 29 of file DependencyEntityFactory.php.

◆ $references

array TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::$references = []
protected

Definition at line 30 of file DependencyEntityFactory.php.