1 | <?php |
||
13 | class Datatable19QueryParser extends QueryParser |
||
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) |
||
54 | |||
55 | /** |
||
56 | * Helper function that will check if a variable is empty |
||
57 | * @param mixed $string |
||
58 | * @return bool true if empty, false otherwise |
||
59 | */ |
||
60 | private function isEmpty($string) |
||
64 | |||
65 | /** |
||
66 | * @param ParameterBag $query |
||
67 | * @param QueryConfigurationBuilder $builder |
||
68 | */ |
||
69 | public function getDrawCall($query, $builder) |
||
75 | |||
76 | /** |
||
77 | * @param ParameterBag $query |
||
78 | * @param QueryConfigurationBuilder $builder |
||
79 | */ |
||
80 | public function getStart($query, $builder) |
||
86 | |||
87 | /** |
||
88 | * @param ParameterBag $query |
||
89 | * @param QueryConfigurationBuilder $builder |
||
90 | */ |
||
91 | public function getLength($query, $builder) |
||
97 | |||
98 | /** |
||
99 | * @param ParameterBag $query |
||
100 | * @param QueryConfigurationBuilder $builder |
||
101 | */ |
||
102 | public function getSearch($query, $builder) |
||
108 | |||
109 | /** |
||
110 | * @param ParameterBag $query |
||
111 | * @param QueryConfigurationBuilder $builder |
||
112 | */ |
||
113 | public function getSearchColumns($query, $builder, array $columnConfiguration) |
||
129 | |||
130 | /** |
||
131 | * @param ParameterBag $query |
||
132 | * @param QueryConfigurationBuilder $builder |
||
133 | */ |
||
134 | public function getRegex($query, $builder) |
||
140 | } |