/** * Displays a list of records * * @return void */ public function displayTask() { // Incoming $this->view->filters = array('limit' => Request::getState($this->_option . '.' . $this->_controller . '.limit', 'limit', Config::get('list_limit'), 'int'), 'start' => Request::getState($this->_option . '.' . $this->_controller . '.limitstart', 'limitstart', 0, 'int'), 'state' => Request::getState($this->_option . '.' . $this->_controller . '.state', 'state', 0, 'int'), 'sortby' => Request::getVar('sortby', 'a.created DESC')); $model = new ReportAbuse($this->database); // Get record count $this->view->total = $model->getCount($this->view->filters); // Get records $this->view->rows = $model->getRecords($this->view->filters); // Output the HTML $this->view->display(); }