PHP Class eZ\Publish\Core\Search\Legacy\Content\Location\Gateway\SortClauseHandler\Location\IsMainLocation

Inheritance: extends eZ\Publish\Core\Search\Legacy\Content\Common\Gateway\SortClauseHandler
Mostra file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
accept ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause ) : boolean Check if this sort clause handler accepts to handle the given sort clause.
applySelect ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause, integer $number ) : string Apply selects to the query.

Method Details

accept() public method

Check if this sort clause handler accepts to handle the given sort clause.
public accept ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause ) : boolean
$sortClause eZ\Publish\API\Repository\Values\Content\Query\SortClause
return boolean

applySelect() public method

Returns the name of the (aliased) column, which information should be used for sorting.
public applySelect ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause, integer $number ) : string
$query eZ\Publish\Core\Persistence\Database\SelectQuery
$sortClause eZ\Publish\API\Repository\Values\Content\Query\SortClause
$number integer
return string