Class

eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\CriteriaConverter

class CriteriaConverter

Content locator gateway implementation using the DoctrineDatabase.

Methods

__construct(array $handlers = array())

Construct from an optional array of Criterion handlers.

addHandler(CriterionHandler $handler)

Adds handler.

Expression convertCriteria(SelectQuery $query, Criterion $criterion, array $languageSettings)

Generic converter of criteria into query fragments.

Details

at line 32
public __construct(array $handlers = array())

Construct from an optional array of Criterion handlers.

Parameters

array $handlers

at line 42
public addHandler(CriterionHandler $handler)

Adds handler.

Parameters

CriterionHandler $handler

at line 58
public Expression convertCriteria(SelectQuery $query, Criterion $criterion, array $languageSettings)

Generic converter of criteria into query fragments.

Parameters

SelectQuery $query
Criterion $criterion
array $languageSettings

Return Value

Expression

Exceptions

InvalidArgumentException if Criterion is not applicable to its target