Class

eZ\Publish\API\Repository\Values\Content\Query\Criterion\LogicalOperator

abstract class LogicalOperator extends Criterion

Note that the class should ideally have been in a Logical namespace, but it would have then be named 'And', and 'And' is a PHP reserved word.

Properties

string $operator The operator used by the Criterion.
array(int|string) $value The value(s) matched by the criteria.
string $target The target used by the criteria (field, metadata...).
Value $valueData Additional value data, required by some criterions, MapLocationDistance for instance.
Criterion[] $criteria The set of criteria combined by the logical operator.

Methods

__construct(array $criteria)

Creates a Logic operation with the given criteria.

static  createFromQueryBuilder($target, $operator, $value)

from Criterion

Details

at line 34
public __construct(array $criteria)

Creates a Logic operation with the given criteria.

Parameters

array $criteria

Exceptions

InvalidArgumentException

in Criterion at line 149
static public createFromQueryBuilder($target, $operator, $value)

Parameters

$target
$operator
$value