1 | <?php |
||
22 | class DataTablesOrder implements DataTablesOrderInterface { |
||
23 | |||
24 | /** |
||
25 | * Column. |
||
26 | * |
||
27 | * @var int |
||
28 | */ |
||
29 | private $column; |
||
30 | |||
31 | /** |
||
32 | * Dir. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | private $dir; |
||
37 | |||
38 | /** |
||
39 | * Constructor. |
||
40 | */ |
||
41 | protected function __construct() { |
||
42 | // NOTHING TO DO |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function getColumn() { |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getDir() { |
||
58 | |||
59 | /** |
||
60 | * Parse a raw orders. |
||
61 | * |
||
62 | * @param array $rawOrders The raw orders. |
||
63 | * @return DataTablesOrderInterface[] Returns the orders. |
||
64 | */ |
||
65 | public static function parse(array $rawOrders) { |
||
93 | |||
94 | /** |
||
95 | * Set the column. |
||
96 | * |
||
97 | * @param int $column The column. |
||
98 | * @return DataTablesOrderInterface Returns this order. |
||
99 | */ |
||
100 | protected function setColumn($column) { |
||
104 | |||
105 | /** |
||
106 | * Set the dir. |
||
107 | * |
||
108 | * @param string $dir The dir. |
||
109 | * @return DataTablesOrderInterface Returns this order. |
||
110 | */ |
||
111 | protected function setDir($dir) { |
||
118 | |||
119 | } |
||
120 |