eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\SortClauseHandler Class Reference

Handler for a single sort clause. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\SortClauseHandler:

Public Member Functions

 __construct (EzcDbHandler $dbHandler)
 Creates a new criterion handler. More...
 
 accept (SortClause $sortClause)
 Check if this sort clause handler accepts to handle the given sort clause. More...
 
 applyJoin (ezcQuerySelect $query, SortClause $sortClause, $number)
 Applies joins to the query. More...
 
 applySelect (ezcQuerySelect $query, SortClause $sortClause, $number)
 Apply selects to the query. More...
 

Protected Member Functions

 getSortColumnName ($number)
 Returns the quoted sort column name. More...
 
 getSortTableName ($number)
 Returns the sort table name. More...
 

Protected Attributes

 $dbHandler
 

Detailed Description

Handler for a single sort clause.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\SortClauseHandler::__construct ( EzcDbHandler  $dbHandler)

Creates a new criterion handler.

Parameters
\eZ\Publish\Core\Persistence\Legacy\EzcDbHandler$dbHandler

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\SortClauseHandler::accept ( SortClause  $sortClause)
abstract

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

Parameters
\eZ\Publish\API\Repository\Values\Content\Query\SortClause$sortClause
Returns
boolean
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\SortClauseHandler::applyJoin ( ezcQuerySelect  $query,
SortClause  $sortClause,
  $number 
)

Applies joins to the query.

Parameters
\ezcQuerySelect$query
\eZ\Publish\API\Repository\Values\Content\Query\SortClause$sortClause
int$number
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\SortClauseHandler::applySelect ( ezcQuerySelect  $query,
SortClause  $sortClause,
  $number 
)
abstract

Apply selects to the query.

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

Parameters
\ezcQuerySelect$query
\eZ\Publish\API\Repository\Values\Content\Query\SortClause$sortClause
int$number
Returns
string

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\SortClauseHandler::$dbHandler
protected

The documentation for this class was generated from the following file: