Property | Type | Description | |
---|---|---|---|
$escapeOutput | boolean |
Method | Description | |
---|---|---|
compile ( string $argumentsName, string $closureName, string &$initializationPhpCode, TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $node, TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler $compiler ) : string | The compiled ViewHelper adds two new ViewHelper arguments: __thenClosure and __elseClosure. | |
initializeArguments ( ) | Initializes the "then" and "else" arguments | |
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed |
Method | Description | |
---|---|---|
evaluateCondition ( array | null $arguments = null, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : boolean | Static method which can be overridden by subclasses. If a subclass requires a different (or faster) decision then this method is the one to override and implement. | |
evaluateElseClosures ( array $closures, array $conditionClosures, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string | ||
renderElseChild ( ) : string | Returns value of "else" attribute. | |
renderResult ( boolean $isConditionFullfilled, array $arguments, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string | ||
renderThenChild ( ) : mixed | Returns value of "then" attribute. |
public compile ( string $argumentsName, string $closureName, string &$initializationPhpCode, TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $node, TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler $compiler ) : string | ||
$argumentsName | string | |
$closureName | string | |
$initializationPhpCode | string | |
$node | TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode | |
$compiler | TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler | |
return | string |
protected static evaluateElseClosures ( array $closures, array $conditionClosures, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string | ||
$closures | array | |
$conditionClosures | array | |
$renderingContext | TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface | |
return | string |
public initializeArguments ( ) |
protected renderElseChild ( ) : string | ||
return | string | rendered ElseViewHelper or an empty string if no ThenViewHelper was found |
protected static renderResult ( boolean $isConditionFullfilled, array $arguments, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string | ||
$isConditionFullfilled | boolean | |
$arguments | array | |
$renderingContext | TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface | |
return | string |
public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed | ||
$arguments | array | |
$renderChildrenClosure | Closure | |
$renderingContext | TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface | |
return | mixed |
protected renderThenChild ( ) : mixed | ||
return | mixed | rendered ThenViewHelper or contents of |