/** * List resource authors * * @return void */ public function displayTask() { // Get filters $this->view->filters = array('search' => Request::getState($this->_option . '.' . $this->_controller . '.search', 'search', ''), 'sort' => Request::getState($this->_option . '.' . $this->_controller . '.sort', 'filter_order', 'name'), 'sort_Dir' => Request::getState($this->_option . '.' . $this->_controller . '.sortdir', 'filter_order_Dir', 'ASC'), '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')); $obj = new Contributor($this->database); // Get record count $this->view->total = $obj->getAuthorCount($this->view->filters); // Get records $this->view->rows = $obj->getAuthorRecords($this->view->filters); $this->view->display(); }