Class

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

class LogicalOr extends LogicalOperator

This criterion implements a logical OR criterion and will only match if AT LEAST ONE of the given criteria match.

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.

from LogicalOperator

Details

in LogicalOperator at line 34
public __construct(array $criteria)

Creates a Logic operation with the given criteria.

Parameters

array $criteria

Exceptions

InvalidArgumentException