2 namespace TYPO3\CMS\Version\Dependency;
41 public function getElement($table, $id, array $data = array(), \TYPO3\CMS\Version\Dependency\
DependencyResolver $dependency)
44 $element = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Version\Dependency\ElementEntity::class, $table, $id, $data, $dependency);
45 $elementName = $element->__toString();
46 if (!isset($this->elements[$elementName])) {
47 $this->elements[$elementName] = $element;
49 return $this->elements[$elementName];
61 $referenceName = $element->__toString() .
'.' . $field;
62 if (!isset($this->references[$referenceName][$field])) {
63 $this->references[$referenceName][$field] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Version\Dependency\ReferenceEntity::class, $element, $field);
65 return $this->references[$referenceName][$field];
82 return $this->
getReference($this->getElement($table, $id, $data, $dependency), $field);