| @@ 34-54 (lines=21) @@ | ||
| 31 | * @param ColumnConfiguration[] $columnConfiguration The configuration of the columns |
|
| 32 | * @return QueryConfiguration the configuration the provider can use to prepare the data |
|
| 33 | */ |
|
| 34 | public function parse(Request $request, array $columnConfiguration) |
|
| 35 | { |
|
| 36 | $query = $request->query; |
|
| 37 | $builder = QueryConfigurationBuilder::create(); |
|
| 38 | ||
| 39 | $this->getDrawCall($query, $builder); |
|
| 40 | ||
| 41 | $this->getStart($query, $builder); |
|
| 42 | ||
| 43 | $this->getLength($query, $builder); |
|
| 44 | ||
| 45 | $this->getSearch($query, $builder); |
|
| 46 | ||
| 47 | $this->getRegex($query, $builder); |
|
| 48 | ||
| 49 | $this->getOrder($query, $builder, $columnConfiguration); |
|
| 50 | ||
| 51 | $this->getSearchColumns($query, $builder, $columnConfiguration); |
|
| 52 | ||
| 53 | return $builder->build(); |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * Helper function that will check if a variable is empty |
|
| @@ 36-56 (lines=21) @@ | ||
| 33 | * @param ColumnConfiguration[] $columnConfiguration The configuration of the columns |
|
| 34 | * @return QueryConfiguration the configuration the provider can use to prepare the data |
|
| 35 | */ |
|
| 36 | public function parse(Request $request, array $columnConfiguration) |
|
| 37 | { |
|
| 38 | $query = $request->query; |
|
| 39 | $builder = QueryConfigurationBuilder::create(); |
|
| 40 | ||
| 41 | $this->getDrawCall($query, $builder); |
|
| 42 | ||
| 43 | $this->getStart($query, $builder); |
|
| 44 | ||
| 45 | $this->getLength($query, $builder); |
|
| 46 | ||
| 47 | $this->getSearch($query, $builder); |
|
| 48 | ||
| 49 | $this->determineSortableColumns($query, $builder, $columnConfiguration); |
|
| 50 | ||
| 51 | $this->getRegex($query, $builder); |
|
| 52 | ||
| 53 | $this->getSearchColumns($query, $builder, $columnConfiguration); |
|
| 54 | ||
| 55 | return $builder->build(); |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * Helper function that will check if a variable is empty |
|