protected function elementShouldDisplay(Base $objElement)
    {
        $blnReturn = true;

        $objCondition = $objElement->getConditionRecursive("visible");
        if (is_object($objCondition)) {
            // If the condition is met for the first element,
            // it automatically applies to the dynamic clones as well.
            // Therefore we only check dynamic counter 0
            if ($objCondition->isMet(0)) {
                $blnReturn = $objCondition->getValue();
            } else {
                $blnReturn = !$objCondition->getValue();
            }
        }

        return $blnReturn;
    }
protected function elementShouldDisplay(Base $objElement)
    {
        $blnReturn = true;

        $objCondition = $objElement->getConditionRecursive("visible");
        if (is_object($objCondition)) {
            // If the condition is met for the first element,
            // it automatically applies to the dynamic clones as well.
            // Therefore we only check dynamic counter 0
            if ($objCondition->isMet(0)) {
                $blnReturn = $objCondition->getValue();
            } else {
                $blnReturn = !$objCondition->getValue();
            }
        }

        return $blnReturn;
    }
protected function elementShouldDisplay ( Base $ objElement ) { $ blnReturn = true ; $ objCondition = $ objElement -> getConditionRecursive ( "visible" ) ; if ( is_object ( $ objCondition ) ) { // If the condition is met for the first element, // it automatically applies to the dynamic clones as well. // Therefore we only check dynamic counter 0 if ( $ objCondition -> isMet ( 0 ) ) { $ blnReturn = $ objCondition -> getValue ( ) ; } else { $ blnReturn = ! $ objCondition -> getValue ( ) ; } } return $ blnReturn ; }
Check if an element should be visible according to an optionally attached "visible" condition.

@param Base $objElement
@return bool
@throws \Exception
Check if an element should be visible according to an optionally attached visible condition .