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

Public Member Functions

ElementEntity getElement ($table, $id, array $data=[], DependencyResolver $dependency)
 
ReferenceEntity getReference (ElementEntity $element, $field)
 
ReferenceEntity getReferencedElement ($table, $id, $field, array $data=[], DependencyResolver $dependency)
 

Protected Attributes

array $elements = array( )
 
array $references = array( )
 

Detailed Description

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

Definition at line 23 of file DependencyEntityFactory.php.

Member Function Documentation

◆ getElement()

ElementEntity TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::getElement (   $table,
  $id,
array  $data = [],
DependencyResolver  $dependency 
)

Gets and registers a new element.

Parameters
string$table
int$id
array$data‪(optional)
DependencyResolver$dependency
Returns
ElementEntity

Definition at line 42 of file DependencyEntityFactory.php.

Referenced by TYPO3\CMS\Workspaces\Dependency\DependencyResolver\addElement(), and TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory\getReferencedElement().

◆ getReference()

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

Gets and registers a new reference.

Parameters
ElementEntity$element
string$field
Returns
ReferenceEntity

Definition at line 59 of file DependencyEntityFactory.php.

References TYPO3\CMS\Workspaces\Dependency\ElementEntity\__toString().

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

◆ getReferencedElement()

ReferenceEntity TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::getReferencedElement (   $table,
  $id,
  $field,
array  $data = [],
DependencyResolver  $dependency 
)

Member Data Documentation

◆ $elements

array TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::$elements = array( )
protected

Definition at line 27 of file DependencyEntityFactory.php.

◆ $references

array TYPO3\CMS\Workspaces\Dependency\DependencyEntityFactory::$references = array( )
protected

Definition at line 31 of file DependencyEntityFactory.php.