TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
DependencyEntityFactory Class Reference

Public Member Functions

 getReference (\TYPO3\CMS\Version\Dependency\ElementEntity $element, $field)
 
 getReferencedElement ($table, $id, $field, array $data=[],\TYPO3\CMS\Version\Dependency\DependencyResolver $dependency)
 

Protected Attributes

 $elements = []
 
 $references = []
 

Detailed Description

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

Definition at line 20 of file DependencyEntityFactory.php.

Member Function Documentation

getReference ( \TYPO3\CMS\Version\Dependency\ElementEntity  $element,
  $field 
)

Gets and registers a new reference.

Parameters
\TYPO3\CMS\Version\Dependency\ElementEntity$element
string$field
Returns

Definition at line 59 of file DependencyEntityFactory.php.

References GeneralUtility\makeInstance().

Referenced by DependencyEntityFactory\getReferencedElement().

getReferencedElement (   $table,
  $id,
  $field,
array  $data = [],
\TYPO3\CMS\Version\Dependency\DependencyResolver  $dependency 
)

Gets and registers a new reference.

Parameters
string$table
int$id
string$field
array$data(optional)
\TYPO3\CMS\Version\Dependency\DependencyResolver$dependency
Returns
See also
getElement
getReference

Definition at line 80 of file DependencyEntityFactory.php.

References DependencyEntityFactory\getReference().

Member Data Documentation

$elements = []
protected

Definition at line 25 of file DependencyEntityFactory.php.

$references = []
protected

Definition at line 30 of file DependencyEntityFactory.php.