コード例 #1
0
ファイル: licenses.php プロジェクト: mined-gatech/hubzero-cms
 /**
  * List resource types
  *
  * @return  void
  */
 public function displayTask()
 {
     // Incoming
     $this->view->filters = array('limit' => Request::getState($this->_option . '.licenses.limit', 'limit', Config::get('list_limit'), 'int'), 'start' => Request::getState($this->_option . '.licenses.limitstart', 'limitstart', 0, 'int'), 'search' => Request::getState($this->_option . '.licenses.search', 'search', ''), 'sort' => Request::getState($this->_option . '.licenses.sort', 'filter_order', 'title'), 'sort_Dir' => Request::getState($this->_option . '.licenses.sortdir', 'filter_order_Dir', 'ASC'));
     // Instantiate an object
     $rt = new \Components\Publications\Tables\License($this->database);
     // Get a record count
     $this->view->total = $rt->getCount($this->view->filters);
     // Get records
     $this->view->rows = $rt->getRecords($this->view->filters);
     // Set any errors
     if ($this->getError()) {
         $this->view->setError($this->getError());
     }
     // Output the HTML
     $this->view->display();
 }