PHP Class 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
Inheritance: extends eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\FieldValue\Handler
Mostrar archivo Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$separator string Character separating indexed values.

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public method

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
return eZ\Publish\Core\Persistence\Database\Expression

Property Details

$separator protected_oe property

Character separating indexed values.
protected string $separator
return string