/** * Subscriptions List * * @return void */ public function displayTask() { $this->view->filters = array('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'), 'sortby' => Request::getState($this->_option . '.' . $this->_controller . '.sortby', 'sortby', 'pending'), 'filterby' => Request::getState($this->_option . '.' . $this->_controller . '.filterby', 'filterby', 'all')); $obj = new Subscription($this->database); // Record count $this->view->total = $obj->getSubscriptionsCount($this->view->filters, true); // Fetch results $this->view->rows = $obj->getSubscriptions($this->view->filters, true); // Set any errors foreach ($this->getErrors() as $error) { $this->view->setError($error); } // Output the HTML $this->view->display(); }