Order
in package
Order parser class
Tags
Table of Contents
Methods
- parse() : array<string|int, mixed>
- Get the order by values
Methods
parse()
Get the order by values
public
static parse(string $orderBy) : array<string|int, mixed>
A string carrying no direction falls back to ASC, which is SQL's own default for a bare column. A leading '-' is the shorthand for descending, the same convention that Model\AbstractDataModel::getOrderBy() applies to its sort parameter.
Parameters
- $orderBy : string