Пример #1
0
 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);
 }
Пример #2
0
 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));
 }
Пример #3
0
 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)));
 }
Пример #4
0
 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);
 }
Пример #5
0
 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);
 }