TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
TextNode Class Reference
Inheritance diagram for TextNode:
AbstractNode NodeInterface

Public Member Functions

 __construct ($text)
 
 evaluate (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 getText ()
 
- Public Member Functions inherited from 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 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 (   $text)

Constructor.

Parameters
string$texttext to store in this textNode
Exceptions
\TYPO3\CMS\Fluid\Core\Parser\Exception

Definition at line 32 of file TextNode.php.

References TextNode\$text.

Member Function Documentation

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 NodeInterface.

Definition at line 47 of file TextNode.php.

References AbstractNode\evaluateChildNodes().

getText ( )

Getter for text

Returns
string The text of this node

Definition at line 57 of file TextNode.php.

References TextNode\$text.

Member Data Documentation

$text
protected

Definition at line 24 of file TextNode.php.

Referenced by TextNode\__construct(), and TextNode\getText().