PHP Class FluidTYPO3\Vhs\ViewHelpers\Condition\Variable\IssetViewHelper

Renders the then child if the variable name given in the name argument exists in the template. The value can be zero, NULL or an empty string - but the ViewHelper will still return TRUE if the variable exists. Combines well with dynamic variable names: ... ... {foo -> v:condition.variable.isset(name: bar)}
Author: Claus Due ([email protected])
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper
Mostra file Open project: fluidtypo3/vhs

Public Methods

Method Description
initializeArguments ( ) Initialize arguments
render ( ) : string Render
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed Default implementation for use in compiled templates

Method Details

initializeArguments() public method

Initialize arguments
public initializeArguments ( )

render() public method

Render
public render ( ) : string
return string

renderStatic() public static method

Default implementation for use in compiled templates
public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface
return mixed