1 | <?php |
||
20 | class DataTablesOrder implements DataTablesOrderInterface { |
||
21 | |||
22 | /** |
||
23 | * Column. |
||
24 | * |
||
25 | * @var integer |
||
26 | */ |
||
27 | private $column; |
||
28 | |||
29 | /** |
||
30 | * Dir. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $dir; |
||
35 | |||
36 | /** |
||
37 | * Constructor. |
||
38 | */ |
||
39 | protected function __construct() { |
||
42 | |||
43 | /** |
||
44 | * DataTables dirs. |
||
45 | * |
||
46 | * @return array Returns the dirs. |
||
47 | */ |
||
48 | public static function dtDirs() { |
||
54 | |||
55 | /** |
||
56 | * Get the column. |
||
57 | * |
||
58 | * @return integer Returns the column. |
||
59 | */ |
||
60 | public function getColumn() { |
||
63 | |||
64 | /** |
||
65 | * Get the dir. |
||
66 | * |
||
67 | * @return string Returns the dir. |
||
68 | */ |
||
69 | public function getDir() { |
||
72 | |||
73 | /** |
||
74 | * Parse a raw orders. |
||
75 | * |
||
76 | * @param array $rawOrders The raw orders. |
||
77 | * @return DataTablesOrder[] Returns the orders. |
||
78 | */ |
||
79 | public static function parse(array $rawOrders) { |
||
107 | |||
108 | /** |
||
109 | * Set the column. |
||
110 | * |
||
111 | * @param integer $column The column. |
||
112 | * @return DataTablesOrder Returns this order. |
||
113 | */ |
||
114 | protected function setColumn($column) { |
||
118 | |||
119 | /** |
||
120 | * Set the dir. |
||
121 | * |
||
122 | * @param string $dir The dir. |
||
123 | * @return DataTablesOrder Returns this order. |
||
124 | */ |
||
125 | protected function setDir($dir) { |
||
132 | |||
133 | } |
||
134 |