PHP Класс 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.
Наследование: extends Neos\Eel\FlowQuery\Operations\Object\FilterOperation
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$priority integer

Открытые методы

Метод Описание
canEvaluate ( $context ) : boolean
evaluate ( FlowQuery $flowQuery, array $arguments ) : void

Защищенные методы

Метод Описание
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

Описание методов

canEvaluate() публичный Метод

public canEvaluate ( $context ) : boolean
Результат boolean TRUE if the operation can be applied onto the $context, FALSE otherwise

evaluate() публичный Метод

public evaluate ( FlowQuery $flowQuery, array $arguments ) : void
$flowQuery Neos\Eel\FlowQuery\FlowQuery
$arguments array
Результат void

evaluateOperator() защищенный Метод

protected evaluateOperator ( mixed $value, string $operator, mixed $operand ) : boolean
$value mixed
$operator string
$operand mixed
Результат boolean

getPropertyPath() защищенный Метод

protected getPropertyPath ( object $element, string $propertyPath ) : mixed
$element object
$propertyPath string
Результат mixed

matchesIdentifierFilter() защищенный Метод

protected matchesIdentifierFilter ( object $element, string $identifier ) : boolean
$element object
$identifier string
Результат boolean

matchesPropertyNameFilter() защищенный Метод

protected matchesPropertyNameFilter ( object $element, string $propertyNameFilter ) : boolean
$element object
$propertyNameFilter string
Результат boolean TRUE if the property name filter matches

Описание свойств

$priority защищенное статическое свойство

protected static int $priority
Результат integer