/** * List resource types * * @return void */ public function displayTask() { // Incoming $this->view->filters = array('limit' => Request::getState($this->_option . '.types.limit', 'limit', Config::get('list_limit'), 'int'), 'start' => Request::getState($this->_option . '.types.limitstart', 'limitstart', 0, 'int'), 'sort' => Request::getState($this->_option . '.types.sort', 'filter_order', 'category'), 'sort_Dir' => Request::getState($this->_option . '.types.sortdir', 'filter_order_Dir', 'DESC'), 'category' => Request::getState($this->_option . '.types.category', 'category', 27, 'int')); // Instantiate an object $rt = new Type($this->database); // Get a record count $this->view->total = $rt->getAllCount($this->view->filters); // Get records $this->view->rows = $rt->getAllTypes($this->view->filters); // Get the category names $this->view->cats = $rt->getTypes('0'); // Output the HTML $this->view->display(); }