1 | <?php |
||
13 | abstract class DatatableVersion extends Version |
||
14 | { |
||
15 | /** |
||
16 | * @var QueryParser |
||
17 | */ |
||
18 | protected $queryParser; |
||
19 | |||
20 | /** |
||
21 | * DatatableVersion constructor. |
||
22 | * @param RequestStack $requestStack |
||
23 | * @param QueryParser $queryParser |
||
24 | */ |
||
25 | public function __construct(RequestStack $requestStack, QueryParser $queryParser) |
||
30 | |||
31 | /** |
||
32 | * Method to determine if this parser can handle the query parameters. If so then the parser should return true |
||
33 | * and be able to return a DTQueryConfiguration |
||
34 | * |
||
35 | * @return bool true if the parser is able to parse the query parameters and to return a DTQueryConfiguration |
||
36 | */ |
||
37 | public function canParseRequest() |
||
41 | |||
42 | /** |
||
43 | * Method that should parse the request and return a DTQueryConfiguration |
||
44 | * |
||
45 | * @param ColumnConfiguration[] $columnConfiguration The configuration of the columns |
||
46 | * @return QueryConfiguration the configuration the provider can use to prepare the data |
||
47 | */ |
||
48 | public function parseRequest(array $columnConfiguration) |
||
52 | |||
53 | /** |
||
54 | * Get the request out of the request stack |
||
55 | * @return \Symfony\Component\HttpFoundation\Request |
||
56 | * @throws \InvalidArgumentException when the current request is empty/null |
||
57 | */ |
||
58 | private function getRequest() |
||
67 | } |