PHP Class FluidTYPO3\Vhs\ViewHelpers\IfViewHelper

Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper
Datei anzeigen Open project: fluidtypo3/vhs

Protected Properties

Property Type Description
$comparisonOperators array
$logicalOperators array
$operatorPrecedence array Lower value means less precedence

Public Methods

Method Description
initializeArguments ( ) : void Initialize

Protected Methods

Method Description
evaluateCondition ( array $arguments = null ) : boolean This method decides if the condition is TRUE or FALSE. It can be overriden in extending viewhelpers to adjust functionality.
evaluateLogicalOperator ( array $leftSide, string $operator, array $rightSide ) : boolean
evaluateStack ( array $stack ) : boolean
prepareSideForEvaluation ( array $side ) : array

Method Details

evaluateCondition() protected static method

This method decides if the condition is TRUE or FALSE. It can be overriden in extending viewhelpers to adjust functionality.
protected static evaluateCondition ( array $arguments = null ) : boolean
$arguments array ViewHelper arguments to evaluate the condition for this ViewHelper, allows for flexiblity in overriding this method.
return boolean

evaluateLogicalOperator() protected static method

protected static evaluateLogicalOperator ( array $leftSide, string $operator, array $rightSide ) : boolean
$leftSide array
$operator string
$rightSide array
return boolean

evaluateStack() protected static method

protected static evaluateStack ( array $stack ) : boolean
$stack array
return boolean

initializeArguments() public method

Initialize
public initializeArguments ( ) : void
return void

prepareSideForEvaluation() protected static method

protected static prepareSideForEvaluation ( array $side ) : array
$side array
return array

Property Details

$comparisonOperators protected_oe static_oe property

protected static array $comparisonOperators
return array

$logicalOperators protected_oe static_oe property

protected static array $logicalOperators
return array

$operatorPrecedence protected_oe static_oe property

Lower value means less precedence
protected static array $operatorPrecedence
return array