/** * Display a list of entries for an event * * @return void */ public function displayTask() { $ids = Request::getVar('id', array(0)); $ids = !is_array($ids) ? array($ids) : $ids; if (count($ids) < 1) { App::redirect(Route::url('index.php?option=' . $this->_option, false)); return; } // Get filters $this->view->filters = array(); $this->view->filters['event_id'] = $ids[0]; $this->view->filters['search'] = urldecode(Request::getState($this->_option . '.' . $this->_controller . '.search', 'search', '')); $this->view->filters['limit'] = Request::getState($this->_option . '.' . $this->_controller . '.limit', 'limit', Config::get('list_limit'), 'int'); $this->view->filters['start'] = Request::getState($this->_option . '.' . $this->_controller . '.limitstart', 'limitstart', 0, 'int'); $obj = new Page($this->database); // Get a record count $this->view->total = $obj->getCount($this->view->filters); // Get records $this->view->rows = $obj->getRecords($this->view->filters); $this->view->event = new Event($this->database); $this->view->event->load($ids[0]); // Output the HTML $this->view->display(); }