protected function matchesAttributeFilter($element, array $attributeFilter)
    {
        if ($attributeFilter['PropertyPath'] !== null) {
            $value = $this->getPropertyPath($element, $attributeFilter['PropertyPath']);
        } else {
            $value = $element;
        }
        $operand = null;
        if (isset($attributeFilter['Operand'])) {
            $operand = $attributeFilter['Operand'];
        }

        return $this->evaluateOperator($value, $attributeFilter['Operator'], $operand);
    }
protected function matchesAttributeFilter($element, array $attributeFilter)
    {
        if ($attributeFilter['PropertyPath'] !== null) {
            $value = $this->getPropertyPath($element, $attributeFilter['PropertyPath']);
        } else {
            $value = $element;
        }
        $operand = null;
        if (isset($attributeFilter['Operand'])) {
            $operand = $attributeFilter['Operand'];
        }

        return $this->evaluateOperator($value, $attributeFilter['Operator'], $operand);
    }
protected function matchesAttributeFilter ( $ element , array $ attributeFilter ) { if ( $ attributeFilter [ 'PropertyPath' ] !== null ) { $ value = $ this -> getPropertyPath ( $ element , $ attributeFilter [ 'PropertyPath' ] ) ; } else { $ value = $ element ; } $ operand = null ; if ( isset ( $ attributeFilter [ 'Operand' ] ) ) { $ operand = $ attributeFilter [ 'Operand' ] ; } return $ this -> evaluateOperator ( $ value , $ attributeFilter [ 'Operator' ] , $ operand ) ; }
Match a single attribute filter

@param mixed $element
@param array $attributeFilter
@return boolean
Match a single attribute filter