1 | <?php |
||
18 | abstract class SoqlOrderDirection |
||
19 | { |
||
20 | /** |
||
21 | * The ascending clause Socrata expects |
||
22 | */ |
||
23 | const ASC = 'ASC'; |
||
24 | |||
25 | /** |
||
26 | * The descending clause Socrata expects |
||
27 | */ |
||
28 | const DESC = 'DESC'; |
||
29 | |||
30 | /** |
||
31 | * Ensure that we have a proper sorting order, so return only valid ordering options |
||
32 | * |
||
33 | * @param string $string The order to be checked if valid |
||
34 | * |
||
35 | * @throws \InvalidArgumentException If an unsupported sort order was given |
||
36 | * |
||
37 | * @return string Supported sorting order option |
||
38 | */ |
||
39 | public static function parseOrder ($string) |
||
48 | } |
||
49 |