1 | <?php |
||
13 | class Datatable19QueryParser |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * Method to determine if this parser can handle the query parameters. If so then the parser should return true |
||
18 | * and be able to return a DTQueryConfiguration |
||
19 | * |
||
20 | * @param Request $request The current request, that should be investigated |
||
21 | * @return bool true if the parser is able to parse the query parameters and to return a DTQueryConfiguration |
||
22 | */ |
||
23 | public function canParse(Request $request) |
||
27 | |||
28 | /** |
||
29 | * Method that should parse the request and return a DTQueryConfiguration |
||
30 | * |
||
31 | * @param Request $request The current request that should be investigated |
||
32 | * @param ColumnConfiguration[] $columnConfiguration The configuration of the columns |
||
33 | * @return QueryConfiguration the configuration the provider can use to prepare the data |
||
34 | */ |
||
35 | public function parse(Request $request, array $columnConfiguration) |
||
68 | |||
69 | /** |
||
70 | * Helper function that will check if a variable is empty |
||
71 | * @param mixed $string |
||
72 | * @return bool true if empty, false otherwise |
||
73 | */ |
||
74 | private function isEmpty($string) { |
||
77 | |||
78 | /** |
||
79 | * @param ParameterBag $query |
||
80 | * @param QueryConfigurationBuilder $builder |
||
81 | */ |
||
82 | public function getDrawCall($query, $builder) |
||
88 | |||
89 | /** |
||
90 | * @param ParameterBag $query |
||
91 | * @param QueryConfigurationBuilder $builder |
||
92 | */ |
||
93 | public function getStart($query, $builder) |
||
99 | |||
100 | /** |
||
101 | * @param ParameterBag $query |
||
102 | * @param QueryConfigurationBuilder $builder |
||
103 | */ |
||
104 | public function getLength($query, $builder) |
||
110 | |||
111 | /** |
||
112 | * @param ParameterBag $query |
||
113 | * @param QueryConfigurationBuilder $builder |
||
114 | */ |
||
115 | public function getSearch($query, $builder) |
||
121 | |||
122 | /** |
||
123 | * @param ParameterBag $query |
||
124 | * @param QueryConfigurationBuilder $builder |
||
125 | */ |
||
126 | public function getRegex($query, $builder) |
||
132 | } |