Sort clause for sorting action configurations by ID.
The following example sorts action configurations by ascending IDs, from lower to greater:
$query = new ActionConfigurationQuery();
$query->addSortClause(new Id());
$actionConfigurations = $actionConfigurationService->findActionConfigurations($query);
Typically used to ensure that the action configurations order is always the same.
Tags
Constants¶
SORT_ASC ¶
AbstractSortClause.php
:
16
|
|
SORT_DESC ¶
AbstractSortClause.php
:
19
|
|
Methods¶
__construct() ¶
Id.php
:
32
Constructs a new SortClause on $sortTarget in direction $sortDirection.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$sortDirection | string | Id::SORT_ASC |
one of SortDirection::ASC or SortDirection::DESC |
getDirection() ¶
AbstractSortClause.php
:
39
|
|
Return values
string
getField() ¶
FieldValueSortClause.php
:
24
|
|
Return values
string
setDirection() ¶
AbstractSortClause.php
:
47
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$direction | string | - | - |