Class

eZ\Publish\API\Repository\Values\Content\Query\Criterion\Operator\Specifications

class Specifications

This class is used by Criteria to describe which operators they support.

Instances of this class are returned in an array by the {see Criterion::getSpecifications()} method

Constants

FORMAT_SINGLE

Criterion input type description constants.

FORMAT_ARRAY

TYPE_INTEGER

Criterion input value type description constants.

Used by {see getDescription()} to say which type of values an operator expects.

TYPE_STRING

TYPE_BOOLEAN

Properties

$operator Specified operator, as one of the Operator::* constants.
string $valueFormat Format supported for the Criterion value, either {see self::FORMATSINGLE} for single or {see self::FORMATARRAY} for multiple.
int $valueTypes Accepted values types, specifying what type of variables are accepted as a value.
int $valueCount Limitation on the number of items as the value.

Methods

__construct(string $operator, string $valueFormat, int $valueTypes = null, int $valueCount = null)

Creates a new Specifications object.

Details

at line 74
public __construct(string $operator, string $valueFormat, int $valueTypes = null, int $valueCount = null)

Creates a new Specifications object.

Parameters

string $operator The specified operator, as one of the Operator::* constants
string $valueFormat The accepted value format, either {see self::FORMATARRAY} or {see self::FORMATSINGLE}
int $valueTypes The supported value types, as a bit field of the {see self::TYPE_*} constants
int $valueCount The required number of values, when the accepted format is {see self::FORMAT_ARRAY}