![]() |
TYPO3
7.6
|
Public Member Functions | |
setRootNode (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $rootNode) | |
getRootNode () | |
render (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) | |
pushNodeToStack (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $node) | |
getNodeFromStack () | |
popNodeFromStack () | |
countNodeStack () | |
getVariableContainer () | |
setLayoutNameNode (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $layoutNameNode) | |
getLayoutNameNode () | |
hasLayout () | |
getLayoutName (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) | |
isCompilable () | |
setCompilable ($compilable) | |
isCompiled () | |
Protected Attributes | |
$rootNode | |
$nodeStack = array() | |
$variableContainer | |
$layoutNameNode | |
$compilable = true | |
Stores all information relevant for one parsing pass - that is, the root node, and the current stack of open nodes (nodeStack) and a variable container used for PostParseFacets.
Definition at line 19 of file ParsingState.php.
countNodeStack | ( | ) |
Count the size of the node stack
Definition at line 125 of file ParsingState.php.
getLayoutName | ( | \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface | $renderingContext | ) |
Returns the name of the layout that is defined within the current template via <f:layout name="..." /> If no layout is defined, this returns NULL This requires the current rendering context in order to be able to evaluate the layout name
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface | $renderingContext |
\TYPO3\CMS\Fluid\View\Exception |
Implements ParsedTemplateInterface.
Definition at line 178 of file ParsingState.php.
References ParsingState\hasLayout().
getLayoutNameNode | ( | ) |
getNodeFromStack | ( | ) |
Get the top stack element, without removing it.
Definition at line 105 of file ParsingState.php.
getRootNode | ( | ) |
Get root node of this parsing state.
Definition at line 72 of file ParsingState.php.
References ParsingState\$rootNode.
getVariableContainer | ( | ) |
Returns a variable container which will be then passed to the postParseFacet.
Implements ParsedTemplateInterface.
Definition at line 136 of file ParsingState.php.
References ParsingState\$variableContainer.
hasLayout | ( | ) |
Returns TRUE if the current template has a template defined via <f:layout name="..." />
Implements ParsedTemplateInterface.
Definition at line 164 of file ParsingState.php.
Referenced by ParsingState\getLayoutName().
isCompilable | ( | ) |
Implements ParsedTemplateInterface.
Definition at line 193 of file ParsingState.php.
References ParsingState\$compilable.
isCompiled | ( | ) |
popNodeFromStack | ( | ) |
Pop the top stack element (=remove it) and return it back.
Definition at line 115 of file ParsingState.php.
pushNodeToStack | ( | \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode | $node | ) |
Push a node to the node stack. The node stack holds all currently open templating tags.
\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode | $node | Node to push to node stack |
Definition at line 95 of file ParsingState.php.
render | ( | \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface | $renderingContext | ) |
Render the parsed template with rendering context
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface | $renderingContext | The rendering context to use |
Implements ParsedTemplateInterface.
Definition at line 83 of file ParsingState.php.
setCompilable | ( | $compilable | ) |
bool | $compilable |
Definition at line 201 of file ParsingState.php.
References ParsingState\$compilable.
setLayoutNameNode | ( | \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode | $layoutNameNode | ) |
\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode | $layoutNameNode | name of the layout that is defined in this template via <f:layout name="..." /> |
Definition at line 145 of file ParsingState.php.
References ParsingState\$layoutNameNode.
setRootNode | ( | \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode | $rootNode | ) |
Set root node of this parsing state
\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode | $rootNode |
Definition at line 62 of file ParsingState.php.
References ParsingState\$rootNode.
|
protected |
Definition at line 54 of file ParsingState.php.
Referenced by ParsingState\isCompilable(), and ParsingState\setCompilable().
|
protected |
Definition at line 49 of file ParsingState.php.
Referenced by ParsingState\getLayoutNameNode(), and ParsingState\setLayoutNameNode().
|
protected |
Definition at line 33 of file ParsingState.php.
|
protected |
Definition at line 26 of file ParsingState.php.
Referenced by ParsingState\getRootNode(), and ParsingState\setRootNode().
|
protected |
Definition at line 42 of file ParsingState.php.
Referenced by ParsingState\getVariableContainer().