public function listAction() { parent::listAction(); $limit = new RM_Query_Limits(20); $limit->setPage((int) $this->getParam('page')); $this->view->assign(array('cities' => (new Application_Model_City_Search_Repository())->findCities($this->getParam('search'), $limit))); RM_View_Top::getInstance()->addSearch($this->_ajaxUrl); }
public function listAction() { parent::listAction(); $order = new RM_Query_Order(); $order->add('subscriptionDate', RM_Query_Order::DESC); $limits = new RM_Query_Limits(15); $limits->setPage((int) $this->getParam('page')); $this->view->assign('subscriptions', Application_Model_Subscription::getList($order, $limits)); }
public function listAction() { parent::listAction(); $order = new RM_Query_Order(); $order->add('idPage', RM_Query_Order::DESC); $limit = new RM_Query_Limits(20); $limit->setPageRange(15); $limit->setPage($this->view->page); $this->view->assign(array('pages' => Application_Model_Page::getList($order, $limit))); }
public function indexAction() { parent::listAction(); $search = new Application_Model_User_Profile_Search(); if (!is_null($this->getParam('search'))) { $search->setMatch($this->getParam('search')); } $search->lessRole($this->_user->getRole(), $this->_user); $limits = new RM_Query_Limits(15); $limits->setPage($this->view->page); $this->view->users = $search->getResults($limits); RM_View_Top::getInstance()->addSearch($this->_ajaxUrl); }
public function listAction() { $this->view->headTitle('Errors list'); $errorCategory = RM_Error_Category::getById($this->_getParam('idLog')); RM_View_Top::getInstance()->getBreadcrumbs()->add($errorCategory->getName() . ' errors', array(), 'admin-error-list'); $order = new RM_Query_Order(); $order->add('errorStatus', RM_Query_Order::ASC); $order->add('idLogRow', RM_Query_Order::DESC); $conditions = new RM_Query_Where(); $conditions->add('idLog', RM_Query_Where::EXACTLY, $errorCategory->getId()); $limit = new RM_Query_Limits(10); $limit->setPage($this->view->page); $this->view->errors = RM_Error::getList($order, $conditions, $limit); }