TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\TextNode Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\TextNode:
TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface Tx_Fluid_Core_Parser_SyntaxTree_TextNode

Public Member Functions

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

Protected Attributes

 $text
 
- Protected Attributes inherited from TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode
 $childNodes = array()
 

Detailed Description

Text Syntax Tree Node - is a container for strings.

Definition at line 17 of file TextNode.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\TextNode::__construct (   $text)

Constructor.

Parameters
string$texttext to store in this textNode
Exceptions

Definition at line 32 of file TextNode.php.

References TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\TextNode\$text.

Member Function Documentation

◆ evaluate()

TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\TextNode::evaluate ( \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface  $renderingContext)

Return the text associated to the syntax tree. Text from child nodes is appended to the text in the node's own text.

Parameters
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface$renderingContext
Returns
string the text stored in this node/subtree.

Implements TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\NodeInterface.

Definition at line 46 of file TextNode.php.

References TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode\evaluateChildNodes().

◆ getText()

TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\TextNode::getText ( )

Getter for text

Returns
string The text of this node

Definition at line 55 of file TextNode.php.

References TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\TextNode\$text.

Member Data Documentation

◆ $text

TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\TextNode::$text
protected