Example #1
0
 public static function setViewId($id)
 {
     if (App::getRegistry()->router->getMode() == 0) {
         return Session::setActiveMainsideViewId($id);
     } else {
         return Session::setActiveViewId($id);
     }
 }
Example #2
0
 public function setLayerVariables()
 {
     if (App::getRegistry()->router == null) {
         // CLI compatibility
         return;
     }
     if (App::getRegistry()->router->getMode() == 0) {
         Session::setActiveMainsideViewId($this->registry->loader->getParam('idview'));
     } else {
         if (Session::getActiveViewId() !== NULL) {
             $viewid = Session::getActiveViewId();
         } else {
             $viewid = 0;
         }
         Session::setActiveViewId($viewid);
     }
 }