|
@@ 250-255 (lines=6) @@
|
| 247 |
|
array $sort = [], |
| 248 |
|
$search = null |
| 249 |
|
) { |
| 250 |
|
if (empty($search)) { |
| 251 |
|
$this->instance = $this->parseAliases($this->repository->makeQuery()); |
| 252 |
|
$this->multiFilterBy($filter)->multiSortBy($sort); |
| 253 |
|
} else { |
| 254 |
|
$this->instance = $this->repository->search($search); |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
$count = $this->countResults($this->instance); |
| 258 |
|
$items = $this->instance->forPage($page, $perPage)->get($columns); |
|
@@ 288-293 (lines=6) @@
|
| 285 |
|
array $sort = [], |
| 286 |
|
$search = null |
| 287 |
|
) { |
| 288 |
|
if (is_null($search)) { |
| 289 |
|
$this->instance = $this->parseAliases($this->repository->makeQuery()); |
| 290 |
|
$this->multiFilterBy($filter)->multiSortBy($sort); |
| 291 |
|
} else { |
| 292 |
|
$this->instance = $this->repository->search($search); |
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
return $this->instance->forPage($page, $perPage)->get($columns); |
| 296 |
|
} |