public function indexAction()
 {
     parent::listAction();
     $order = new RM_Query_Order();
     $order->add('langStatus', $order::ASC);
     $order->add('isoName', $order::ASC);
     $this->view->langs = RM_Lang::getList($order);
 }
 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 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);
 }
Exemple #5
0
 private static function _getMaxPosition()
 {
     $order = new RM_Query_Order();
     $order->add('cityPosition', RM_Query_Order::DESC);
     $cities = self::getList($order, new RM_Query_Limits(1));
     return empty($cities) ? 0 : $cities[0]->getPosition();
 }