Class

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

abstract class SortClauseHandler

Handler for a single sort clause.

Methods

__construct(DatabaseHandler $dbHandler)

Creates a new 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.

Details

at line 32
public __construct(DatabaseHandler $dbHandler)

Creates a new sort clause handler.

Parameters

DatabaseHandler $dbHandler

at line 44
abstract 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 58
abstract 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 68
public applyJoin(SelectQuery $query, SortClause $sortClause, int $number, array $languageSettings)

Applies joins to the query.

Parameters

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