TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Fluid\Core\Parser\ParsedTemplateInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Fluid\Core\Parser\ParsedTemplateInterface:
TYPO3\CMS\Fluid\Core\Compiler\AbstractCompiledTemplate TYPO3\CMS\Fluid\Core\Parser\ParsingState TYPO3\CMS\Fluid\Tests\Unit\Core\Compiler\Fixtures\AbstractCompiledTemplate

Public Member Functions

 render (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 getVariableContainer ()
 
 getLayoutName (\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 hasLayout ()
 
 isCompilable ()
 
 isCompiled ()
 

Detailed Description

This interface is returned by ->parse() method and is a parsed template

Definition at line 18 of file ParsedTemplateInterface.php.

Member Function Documentation

◆ getLayoutName()

TYPO3\CMS\Fluid\Core\Parser\ParsedTemplateInterface::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

Parameters
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface$renderingContext
Returns
string

Implemented in TYPO3\CMS\Fluid\Core\Parser\ParsingState.

◆ getVariableContainer()

TYPO3\CMS\Fluid\Core\Parser\ParsedTemplateInterface::getVariableContainer ( )

Returns a variable container used in the PostParse Facet.

Todo:
remove
Returns

Implemented in TYPO3\CMS\Fluid\Core\Parser\ParsingState.

◆ hasLayout()

TYPO3\CMS\Fluid\Core\Parser\ParsedTemplateInterface::hasLayout ( )

Returns TRUE if the current template has a template defined via <f:layout name="..." />

See also
getLayoutName()
Returns
bool

Implemented in TYPO3\CMS\Fluid\Core\Parser\ParsingState.

◆ isCompilable()

TYPO3\CMS\Fluid\Core\Parser\ParsedTemplateInterface::isCompilable ( )

If the template contains constructs which prevent the compiler from compiling the template correctly, isCompilable() will return FALSE.

Returns
bool TRUE if the template can be compiled

Implemented in TYPO3\CMS\Fluid\Core\Parser\ParsingState, and TYPO3\CMS\Fluid\Core\Compiler\AbstractCompiledTemplate.

◆ isCompiled()

TYPO3\CMS\Fluid\Core\Parser\ParsedTemplateInterface::isCompiled ( )
Returns
bool TRUE if the template is already compiled, FALSE otherwise

Implemented in TYPO3\CMS\Fluid\Core\Parser\ParsingState, and TYPO3\CMS\Fluid\Core\Compiler\AbstractCompiledTemplate.

◆ render()

TYPO3\CMS\Fluid\Core\Parser\ParsedTemplateInterface::render ( \TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface  $renderingContext)

Render the parsed template with rendering context

Parameters
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface$renderingContextThe rendering context to use
Returns
string Rendered string

Implemented in TYPO3\CMS\Fluid\Core\Parser\ParsingState.