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

Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$handlers SortClauseHandler[] Sort clause handlers.
$sortColumns array Sorting information for temporary sort columns.

Public Methods

Method Description
__construct ( array $handlers = [] ) Construct from an optional array of sort clause handlers.
addHandler ( SortClauseHandler $handler ) Adds handler.
applyJoin ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, array $sortClauses, array $languageSettings ) Apply join parts of sort clauses to query.
applyOrderBy ( eZ\Publish\Core\Persistence\Database\SelectQuery $query ) Apply order by parts of sort clauses to query.
applySelect ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, array $sortClauses ) Apply select parts of sort clauses to query.

Method Details

__construct() public method

Construct from an optional array of sort clause handlers.
public __construct ( array $handlers = [] )
$handlers array

addHandler() public method

Adds handler.
public addHandler ( SortClauseHandler $handler )
$handler SortClauseHandler

applyJoin() public method

Apply join parts of sort clauses to query.
public applyJoin ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, array $sortClauses, array $languageSettings )
$query eZ\Publish\Core\Persistence\Database\SelectQuery
$sortClauses array
$languageSettings array

applyOrderBy() public method

Apply order by parts of sort clauses to query.
public applyOrderBy ( eZ\Publish\Core\Persistence\Database\SelectQuery $query )
$query eZ\Publish\Core\Persistence\Database\SelectQuery

applySelect() public method

Apply select parts of sort clauses to query.
public applySelect ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, array $sortClauses )
$query eZ\Publish\Core\Persistence\Database\SelectQuery
$sortClauses array

Property Details

$handlers protected_oe property

Sort clause handlers.
protected SortClauseHandler[],eZ\Publish\Core\Search\Legacy\Content\Common\Gateway $handlers
return SortClauseHandler[]

$sortColumns protected_oe property

Sorting information for temporary sort columns.
protected array $sortColumns
return array