TYPO3  7.6
Public Member Functions | List of all members
NodeInterface Interface Reference
Inheritance diagram for NodeInterface:
AbstractNode 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)
 
 evaluate (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 

Detailed Description

Node in the syntax tree.

Definition at line 17 of file fluid/Classes/Core/Parser/SyntaxTree/NodeInterface.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

Implemented in AbstractNode, and NumericNode.

Evaluates the node - can return not only strings, but arbitary objects.

Parameters
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface$renderingContext
Returns
mixed Evaluated node

Implemented in BooleanNode, ViewHelperNode, ObjectAccessorNode, TextNode, NumericNode, ArrayNode, RootNode, and TransparentSyntaxTreeNode.

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.

Implemented in AbstractNode.

getChildNodes ( )

Returns all child nodes for a given node.

Returns
array<> A list of nodes

Implemented in AbstractNode.