Function __global->handle_abstract_sorting
Definitions
sources/content.php
- Remap a simple URL-style sort string with something SQL-compatible. Recognising rating sort order only, but does also support breaking the string down.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$url_sort | string | required parameter | N/A | N/A | The URL sort string |
$info | array | required parameter | N/A | N/A | Map of details of our content type |
$allowed_sorts | ?array | Null | N/A | N/A | List of allowed sort types (null: default set) |
$strict_error | boolean | True | N/A | N/A | Provide a hack-attack error on invalid input |
Return
- A tuple: The SQL-style sort order, The sort direction, The URL-style sort order
- Type: array
- Set: N/A
- Range: N/A