eZPublishCommunityProject  2013.4
eZ\Publish\API\Repository\Values\Content\Query\SortClause Class Reference
+ Inheritance diagram for eZ\Publish\API\Repository\Values\Content\Query\SortClause:

Public Member Functions

 __construct ($sortTarget, $sortDirection, $targetData=null)
 Constructs a new SortClause on $sortTarget in direction $sortDirection. More...
 

Public Attributes

 $direction = Query::SORT_ASC
 
 $target
 
 $targetData
 

Constructor & Destructor Documentation

eZ\Publish\API\Repository\Values\Content\Query\SortClause::__construct (   $sortTarget,
  $sortDirection,
  $targetData = null 
)

Constructs a new SortClause on $sortTarget in direction $sortDirection.

Parameters
string$sortTarget
string$sortDirectionone of Query::SORT_ASC or Query::SORT_DESC
string$targetDataExtra target data, used by some clauses (field for instance)
Exceptions
InvalidArgumentExceptionif the given sort order isn't one of Query::SORT_ASC or Query::SORT_DESC

Member Data Documentation

eZ\Publish\API\Repository\Values\Content\Query\SortClause::$direction = Query::SORT_ASC
eZ\Publish\API\Repository\Values\Content\Query\SortClause::$target
eZ\Publish\API\Repository\Values\Content\Query\SortClause::$targetData

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