Class

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

class LanguageCode extends CriterionHandler

LanguageCode criterion handler.

Methods

__construct(DatabaseHandler $dbHandler, MaskGenerator $maskGenerator)

Construct from language mask generator.

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 34
public __construct(DatabaseHandler $dbHandler, MaskGenerator $maskGenerator)

Construct from language mask generator.

Parameters

DatabaseHandler $dbHandler
MaskGenerator $maskGenerator

at line 47
public bool accept(Criterion $criterion)

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

Parameters

Criterion $criterion

Return Value

bool

at line 64
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