TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Version\Dependency\DependencyEntityFactory Class Reference
Inheritance diagram for TYPO3\CMS\Version\Dependency\DependencyEntityFactory:
t3lib_utility_Dependency_Factory

Public Member Functions

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

Protected Attributes

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! 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 58 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 = array(),
\TYPO3\CMS\Version\Dependency\DependencyResolver  $dependency 
)

Gets and registers a new reference.

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

Definition at line 78 of file DependencyEntityFactory.php.

References TYPO3\CMS\Version\Dependency\DependencyEntityFactory\getReference().

Member Data Documentation

◆ $elements

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

Definition at line 25 of file DependencyEntityFactory.php.

◆ $references

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

Definition at line 30 of file DependencyEntityFactory.php.