Jet\DataModel_Query_OrderBy

The class represents the ORDER BY part of the query. It is a subentity of class Jet\DataModel_Query.

Overview of methods

Method Meaning of
public __construct(
DataModel_Query $query,
array|string $order_by
)
Parameters:
  • $query
    Definition of the query to which the WHERE part belongs.
  • $order_by
    ORDER BY part of the query in raw form - in the form of an array or string.
public getIsEmpty(
) : bool
Indicates whether the definition is empty.
public current(
) : DataModel_Query_OrderBy_Item
The class is an iterator - the definition can be traversed as an array.
public key(
) : string
The class is an iterator - the definition can be traversed as an array.
public next(
) : DataModel_Query_OrderBy_Item|bool
The class is an iterator - the definition can be traversed as an array.
public rewind(
) : void
The class is an iterator - the definition can be traversed as an array.
public valid(
) : bool
The class is an iterator - the definition can be traversed as an array.
public count(
) : int
The class is an iterator - the definition can be traversed as an array.
Previous chapter
Jet\DataModel_Query_GroupBy
Next chapter
Jet\DataModel_Query_OrderBy_Item