public function getTasksPages() { $page = $this->getPage(); $pages = array(); $model = new BSA_PRO_Model(); if ($model->getCronTasks(null, $page, self::PAGE_SIZE)) { foreach ($model->getCronTasks(null, $page, self::PAGE_SIZE) as $entry) { $pages[] = $entry; } } if ($page > 1 and !count($pages)) { return 'not_found'; } return $pages; }