Documentation

Order
in package

Order parser class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
7.0.0

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
Return values
array<string|int, mixed>

        
On this page

Search results