static array getAllSortOrders(
[boolean
$includeDefault = true]
)
|
|
Get information about available sort orders
Parameters:
boolean |
$includeDefault: |
(optional) false to omit "default sort order" selection |
API Tags:
Return: | GalleryStatus a status code array of orderBy => localized name for sort orders array of orderBy => localized name for presorts array of orderDirection => localized name for direction |
Return information about this sort
API Tags:
Return: | GalleryStatus a status code string localized name boolean true for presort |
Redefined in descendants as:
array getSortOrder(
string
$direction
)
|
|
Get the query fragments used to perform this sort.
Order by clause may contain %1%, %2% or %3% to reference the corresponding items in the select clause. A join should be of the form: JOIN [Class] ON [BASE::ID] = [Class::Column] Replace "Class" and "Column" with appropriate values, but BASE::ID is literal. This references the base table and id column in the query.
Parameters:
string |
$direction: |
either '' for ascending or ' DESC' for descending |
API Tags:
Return: | GalleryStatus a status code string order by clause string select clause, string optional row matching condition string optional join clause |
Redefined in descendants as: