Class

eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\Field

class Field extends FieldBase

Field criterion handler.

Methods

__construct(DatabaseHandler $dbHandler, Handler $contentTypeHandler, Handler $languageHandler, ConverterRegistry $fieldConverterRegistry, Converter $fieldValueConverter, TransformationProcessor $transformationProcessor)

Construct from handler handler.

bool accept(Criterion $criterion)

Check if this criterion handler accepts to handle the given criterion.

Expression handle(CriteriaConverter $converter, SelectQuery $query, Criterion $criterion, array $languageSettings)

Generate query expression for a Criterion this handler accepts.

Details

at line 60
public __construct(DatabaseHandler $dbHandler, Handler $contentTypeHandler, Handler $languageHandler, ConverterRegistry $fieldConverterRegistry, Converter $fieldValueConverter, TransformationProcessor $transformationProcessor)

Construct from handler handler.

Parameters

DatabaseHandler $dbHandler
Handler $contentTypeHandler
Handler $languageHandler
ConverterRegistry $fieldConverterRegistry
Converter $fieldValueConverter
TransformationProcessor $transformationProcessor

at line 82
public bool accept(Criterion $criterion)

Check if this criterion handler accepts to handle the given criterion.

Parameters

Criterion $criterion

Return Value

bool

at line 142
public Expression handle(CriteriaConverter $converter, SelectQuery $query, Criterion $criterion, array $languageSettings)

Generate query expression for a Criterion this handler accepts.

accept() must be called before calling this method.

Parameters

CriteriaConverter $converter
SelectQuery $query
Criterion $criterion
array $languageSettings

Return Value

Expression

Exceptions

NotImplementedException If no searchable fields are found for the given criterion target.