Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (array $data=[]) | |
getField () | |
setField ($field) | |
getDirection () | |
setDirection ($direction) | |
![]() | |
__construct (array $data=[]) | |
setData ($key, $value) | |
__toArray () | |
Data Fields | |
const | FIELD = 'field' |
const | DIRECTION = 'direction' |
const | SORT_ASC = 'ASC' |
const | SORT_DESC = 'DESC' |
Additional Inherited Members | |
![]() | |
_get ($key) | |
![]() | |
$_data | |
__construct | ( | array | $data = [] | ) |
Initialize object and validate sort direction
array | $data |
InputException |
Definition at line 30 of file SortOrder.php.
getDirection | ( | ) |
getField | ( | ) |
setDirection | ( | $direction | ) |
Set sorting direction.
string | $direction |
InputException |
Definition at line 84 of file SortOrder.php.
setField | ( | $field | ) |
Set sorting field.
string | $field |
InputException |
Definition at line 59 of file SortOrder.php.
const DIRECTION = 'direction' |
Definition at line 20 of file SortOrder.php.
const FIELD = 'field' |
Definition at line 19 of file SortOrder.php.
const SORT_ASC = 'ASC' |
Definition at line 21 of file SortOrder.php.
const SORT_DESC = 'DESC' |
Definition at line 22 of file SortOrder.php.