PHP Класс eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\FieldValue\Handler\Collection

Collection value handler is used for creating a filter on a value that is in fact a collection of values, separated by a character. Eg. list of countries, list of Selection options, list of RelationList Content ids
Наследование: extends eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\FieldValue\Handler
Показать файл Открыть проект

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

Свойство Тип Описание
$separator string Character separating indexed values.

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

Метод Описание
__construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler, TransformationProcessor $transformationProcessor, string $separator ) Creates a new criterion handler.
handle ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $column ) : eZ\Publish\Core\Persistence\Database\Expression Generates query expression for operator and value of a Field Criterion.

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

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

Creates a new criterion handler.
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler, TransformationProcessor $transformationProcessor, string $separator )
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler
$transformationProcessor eZ\Publish\Core\Persistence\TransformationProcessor
$separator string

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

Generates query expression for operator and value of a Field Criterion.
public handle ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $column ) : eZ\Publish\Core\Persistence\Database\Expression
$query eZ\Publish\Core\Persistence\Database\SelectQuery
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$column string
Результат eZ\Publish\Core\Persistence\Database\Expression

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

$separator защищенное свойство

Character separating indexed values.
protected string $separator
Результат string