TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Version\Dependency\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\DependencyEntityFactory::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 TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

◆ getReferencedElement()

TYPO3\CMS\Version\Dependency\DependencyEntityFactory::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 TYPO3\CMS\Version\Dependency\DependencyEntityFactory\getReference().

Member Data Documentation

◆ $elements

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

Definition at line 25 of file DependencyEntityFactory.php.

◆ $references

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

Definition at line 30 of file DependencyEntityFactory.php.