Class

eZ\Publish\API\Repository\Values\URL\Query\SortClause

abstract class SortClause

This class is the base for SortClause classes, used to set sorting of URL queries.

Constants

SORT_ASC

SORT_DESC

Properties

string $direction Sort direction.
string $target Sort target.

Methods

__construct(string $sortTarget, string $sortDirection)

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

Details

at line 41
public __construct(string $sortTarget, string $sortDirection)

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

Parameters

string $sortTarget
string $sortDirection one of SortClause::SORTASC or SortClause::SORTDESC

Exceptions

InvalidArgumentException if the given sort order isn't one of SortClause::SORTASC or SortClause::SORTDESC