Xima\XmTools\Classes\ViewHelpers\Control\IfViewHelper

class IfViewHelper

Combines two conditions with AND or OR.

render($conditions, $conditionType = 'OR')

renders <f:then> child if $conditions and/or combined is true, otherwise renders <f:else> child.

Parameters:
  • $conditions
  • $conditionType (string) –
Returns:

string the rendered string