TYPO3
7.6
|
Public Member Functions | |
__construct () | |
Protected Member Functions | |
registerAdditionalNodeTypesFromConfiguration () | |
initializeNodeResolver () | |
instantiate ($className, array $data) | |
Protected Attributes | |
$nodeTypes | |
$nodeResolver = array() | |
Create an element object depending on type.
Definition at line 22 of file NodeFactory.php.
__construct | ( | ) |
Set up factory. Initialize additionally registered nodes.
Definition at line 79 of file NodeFactory.php.
References NodeFactory\initializeNodeResolver(), and NodeFactory\registerAdditionalNodeTypesFromConfiguration().
|
protected |
Add resolver and add them sorted to a local property. This can be used to manipulate the nodeName to class resolution with own code.
Exception | if configuration is incomplete or two resolver with identical priorities are registered |
Definition at line 184 of file NodeFactory.php.
References $GLOBALS, and NodeFactory\$nodeResolver.
Referenced by NodeFactory\__construct().
|
protected |
Instantiate given class name
string | $className | Given class name |
array | $data | Main data array |
Definition at line 225 of file NodeFactory.php.
References GeneralUtility\makeInstance().
|
protected |
Add node types from nodeRegistry to $this->nodeTypes. This can be used to add new render types or to overwrite existing node types. The registered class must implement the NodeInterface and will be called if a node with this renderType is rendered.
Exception | if configuration is incomplete or two nodes with identical priorities are registered |
Definition at line 141 of file NodeFactory.php.
References $GLOBALS.
Referenced by NodeFactory\__construct().
|
protected |
Definition at line 74 of file NodeFactory.php.
Referenced by NodeFactory\initializeNodeResolver().
|
protected |
Definition at line 29 of file NodeFactory.php.