/** * Display quota classes * * @return void */ public function displayClassesTask() { // Incoming $this->view->filters = array('limit' => Request::getState($this->_option . '.classes.limit', 'limit', Config::get('list_limit'), 'int'), 'start' => Request::getState($this->_option . '.classes.limitstart', 'limitstart', 0, 'int')); $obj = new Tables\QuotasClasses($this->database); // Get a record count $this->view->total = $obj->getCount($this->view->filters, true); $this->view->rows = $obj->getRecords($this->view->filters, true); $this->view->config = $this->config; // Set any errors foreach ($this->getErrors() as $error) { $this->view->setError($error); } // Output the HTML $this->view->display(); }