예제 #1
0
 /**
  * Display member quotas
  *
  * @return  void
  */
 public function displayTask()
 {
     // Incoming
     $this->view->filters = array('search' => urldecode(Request::getState($this->_option . '.' . $this->_controller . '.search', 'search', '')), 'search_field' => urldecode(Request::getState($this->_option . '.' . $this->_controller . '.search_field', 'search_field', 'name')), 'sort' => Request::getState($this->_option . '.' . $this->_controller . '.sort', 'filter_order', 'user_id'), 'sort_Dir' => Request::getState($this->_option . '.' . $this->_controller . '.sortdir', 'filter_order_Dir', 'ASC'), 'class_alias' => Request::getState($this->_option . '.' . $this->_controller . '.class_alias', 'class_alias', ''), '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 Tables\Preferences($this->database);
     // Get a record count
     $this->view->total = $obj->find('count', $this->view->filters);
     $this->view->rows = $obj->find('list', $this->view->filters);
     $classes = new Tables\SessionClass($this->database);
     $this->view->classes = $classes->find('list');
     $this->view->config = $this->config;
     // Set any errors
     foreach ($this->getErrors() as $error) {
         $this->view->setError($error);
     }
     // Output the HTML
     $this->view->display();
 }