PHP Class Neos\ContentRepository\Eel\FlowQueryOperations\FilterOperation

The implementation changes the behavior of the instanceof operator to work on node types instead of PHP object types, so that:: [instanceof Neos.NodeTypes:Page] will in fact use isOfType() on the NodeType of context elements to filter. This filter allow also to filter the current context by a given node. Anything else remains unchanged.
Inheritance: extends Neos\Eel\FlowQuery\Operations\Object\FilterOperation
Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$priority integer

Public Methods

Method Description
canEvaluate ( $context ) : boolean
evaluate ( FlowQuery $flowQuery, array $arguments ) : void

Protected Methods

Method Description
evaluateOperator ( mixed $value, string $operator, mixed $operand ) : boolean
getPropertyPath ( object $element, string $propertyPath ) : mixed
matchesIdentifierFilter ( object $element, string $identifier ) : boolean
matchesPropertyNameFilter ( object $element, string $propertyNameFilter ) : boolean

Method Details

canEvaluate() public method

public canEvaluate ( $context ) : boolean
return boolean TRUE if the operation can be applied onto the $context, FALSE otherwise

evaluate() public method

public evaluate ( FlowQuery $flowQuery, array $arguments ) : void
$flowQuery Neos\Eel\FlowQuery\FlowQuery
$arguments array
return void

evaluateOperator() protected method

protected evaluateOperator ( mixed $value, string $operator, mixed $operand ) : boolean
$value mixed
$operator string
$operand mixed
return boolean

getPropertyPath() protected method

protected getPropertyPath ( object $element, string $propertyPath ) : mixed
$element object
$propertyPath string
return mixed

matchesIdentifierFilter() protected method

protected matchesIdentifierFilter ( object $element, string $identifier ) : boolean
$element object
$identifier string
return boolean

matchesPropertyNameFilter() protected method

protected matchesPropertyNameFilter ( object $element, string $propertyNameFilter ) : boolean
$element object
$propertyNameFilter string
return boolean TRUE if the property name filter matches

Property Details

$priority protected static property

protected static int $priority
return integer