Class

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

abstract class Location extends Criterion implements CriterionInterface

This is the base class for Location criterions.

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.

Methods

__construct(string|null $target, string|null $operator, string[]|int[]|int|string $value, Value $valueData = null)

Performs operator validation based on the Criterion specifications returned by {see getSpecifications()}.

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

from Criterion

Details

in Criterion at line 60
public __construct(string|null $target, string|null $operator, string[]|int[]|int|string $value, Value $valueData = null)

Performs operator validation based on the Criterion specifications returned by {see getSpecifications()}.

Parameters

string|null $target The target the Criterion applies to: metadata identifier, field identifier...
string|null $operator The operator the Criterion uses. If null is given, will default to Operator::IN if $value is an array, Operator::EQ if it is not.
string[]|int[]|int|string $value
Value $valueData

Exceptions

InvalidArgumentException if the provided operator isn't supported

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

Parameters

$target
$operator
$value