| @@ -14,11 +14,13 @@ | ||
| 14 | 14 | public function scheduled(): void |
| 15 | 15 | { |
| 16 | 16 | acym_setVar('layout', 'scheduled'); |
| 17 | 17 | |
| 18 | + // Get filters data | |
| 18 | 19 | $searchFilter = $this->getVarFiltersListing('string', 'squeue_search', ''); |
| 19 | 20 | $tagFilter = $this->getVarFiltersListing('string', 'squeue_tag', ''); |
| 20 | 21 | |
| 22 | + // Get pagination data | |
| 21 | 23 | $pagination = new PaginationHelper(); |
| 22 | 24 | $campaignsPerPage = $pagination->getListLimit(); |
| 23 | 25 | $page = $this->getVarFiltersListing('int', 'squeue_pagination_page', 1); |
| 24 | 26 | |
| @@ -31,8 +33,9 @@ | ||
| 31 | 33 | 'offset' => ($page - 1) * $campaignsPerPage, |
| 32 | 34 | ] |
| 33 | 35 | ); |
| 34 | 36 | |
| 37 | + // Prepare the pagination | |
| 35 | 38 | $pagination->setStatus((int)$matchingElements['total']->total, $page, $campaignsPerPage); |
| 36 | 39 | $tagClass = new TagClass(); |
| 37 | 40 | |
| 38 | 41 | $viewData = [ |