Class

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

class SortClauseConverter

Converter manager for sort clauses.

Methods

__construct(array $handlers = array())

Construct from an optional array of sort clause handlers.

addHandler(SortClauseHandler $handler)

Adds handler.

applySelect(SelectQuery $query, array $sortClauses)

Apply select parts of sort clauses to query.

applyJoin(SelectQuery $query, array $sortClauses, array $languageSettings)

Apply join parts of sort clauses to query.

applyOrderBy(SelectQuery $query)

Apply order by parts of sort clauses to query.

Details

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

Construct from an optional array of sort clause handlers.

Parameters

array $handlers

at line 49
public addHandler(SortClauseHandler $handler)

Adds handler.

Parameters

SortClauseHandler $handler

at line 62
public applySelect(SelectQuery $query, array $sortClauses)

Apply select parts of sort clauses to query.

Parameters

SelectQuery $query
array $sortClauses

Exceptions

RuntimeException If no handler is available for sort clause

at line 94
public applyJoin(SelectQuery $query, array $sortClauses, array $languageSettings)

Apply join parts of sort clauses to query.

Parameters

SelectQuery $query
array $sortClauses
array $languageSettings

Exceptions

RuntimeException If no handler is available for sort clause

at line 113
public applyOrderBy(SelectQuery $query)

Apply order by parts of sort clauses to query.

Parameters

SelectQuery $query