TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
AbstractNode Class Reference
Inheritance diagram for AbstractNode:
NodeInterface ArrayNode BooleanNode NumericNode ObjectAccessorNode RootNode TextNode ViewHelperNode TransparentSyntaxTreeNode

Public Member Functions

 evaluateChildNodes (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 getChildNodes ()
 
 addChildNode (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface $childNode)
 
- Public Member Functions inherited from NodeInterface
 evaluate (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 

Protected Attributes

 $childNodes = array()
 

Detailed Description

Abstract node in the syntax tree which has been built.

Definition at line 17 of file fluid/Classes/Core/Parser/SyntaxTree/AbstractNode.php.

Member Function Documentation

Appends a subnode to this node. Is used inside the parser to append children

Parameters
\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface$childNodeThe subnode to add
Returns
void

Implements NodeInterface.

Definition at line 80 of file fluid/Classes/Core/Parser/SyntaxTree/AbstractNode.php.

evaluateChildNodes ( \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface  $renderingContext)

Evaluate all child nodes and return the evaluated results.

Parameters
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface$renderingContext
Returns
mixed Normally, an object is returned - in case it is concatenated with a string, a string is returned.
Exceptions
\TYPO3\CMS\Fluid\Core\Parser\Exception

Implements NodeInterface.

Definition at line 33 of file fluid/Classes/Core/Parser/SyntaxTree/AbstractNode.php.

Referenced by RootNode\evaluate(), and TextNode\evaluate().

getChildNodes ( )

Returns all child nodes for a given node. This is especially needed to implement the boolean expression language.

Returns
array<> A list of nodes

Implements NodeInterface.

Definition at line 69 of file fluid/Classes/Core/Parser/SyntaxTree/AbstractNode.php.

References AbstractNode\$childNodes.

Member Data Documentation

$childNodes = array()
protected