Class

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

class Field extends SortClauseHandler

Content locator gateway implementation using the DoctrineDatabase.

Methods

__construct(DatabaseHandler $dbHandler, Handler $languageHandler, Handler $contentTypeHandler)

Creates a new Field sort clause handler.

bool accept(SortClause $sortClause)

Check if this sort clause handler accepts to handle the given sort clause.

string applySelect(SelectQuery $query, SortClause $sortClause, int $number)

Apply selects to the query.

applyJoin(SelectQuery $query, SortClause $sortClause, int $number, array $languageSettings)

Applies joins to the query, required to fetch sort data.

Details

at line 47
public __construct(DatabaseHandler $dbHandler, Handler $languageHandler, Handler $contentTypeHandler)

Creates a new Field sort clause handler.

Parameters

DatabaseHandler $dbHandler
Handler $languageHandler
Handler $contentTypeHandler

at line 65
public bool accept(SortClause $sortClause)

Check if this sort clause handler accepts to handle the given sort clause.

Parameters

SortClause $sortClause

Return Value

bool

at line 82
public string applySelect(SelectQuery $query, SortClause $sortClause, int $number)

Apply selects to the query.

Returns the name of the (aliased) column, which information should be used for sorting.

Parameters

SelectQuery $query
SortClause $sortClause
int $number

Return Value

string

at line 135
public applyJoin(SelectQuery $query, SortClause $sortClause, int $number, array $languageSettings)

Applies joins to the query, required to fetch sort data.

Parameters

SelectQuery $query
SortClause $sortClause
int $number
array $languageSettings