Controller/CommentController.php 1 location
|
@@ 54-58 (lines=5) @@
|
| 51 |
|
$request->query->remove('threadType'); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
foreach ($request->query->all() as $filterKey => $filterValue) { |
| 55 |
|
if (isset($fieldDescriptors[$filterKey])) { |
| 56 |
|
$listBuilder->where($fieldDescriptors[$filterKey], $filterValue); |
| 57 |
|
} |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
$results = $listBuilder->execute(); |
| 61 |
|
$list = new ListRepresentation( |
Controller/ThreadController.php 1 location
|
@@ 39-43 (lines=5) @@
|
| 36 |
|
->getFieldDescriptors('threads'); |
| 37 |
|
$restHelper->initializeListBuilder($listBuilder, $fieldDescriptors); |
| 38 |
|
|
| 39 |
|
foreach ($request->query->all() as $filterKey => $filterValue) { |
| 40 |
|
if (isset($fieldDescriptors[$filterKey])) { |
| 41 |
|
$listBuilder->where($fieldDescriptors[$filterKey], $filterValue); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
$typeParameter = $request->get('types'); |
| 46 |
|
if ($typeParameter) { |