Пример #1
0
 public function initialize()
 {
     parent::initialize();
     $lm = TranslationManager::getInstance();
     $this->addParam("lm", $lm);
     $this->addParam("loadName", NGS()->getRoutesEngine()->getPackage());
 }
Пример #2
0
 public function initialize()
 {
     parent::initialize();
     $this->addParam('userId', NGS()->getSessionManager()->getUserId());
     $this->addParam('userType', NGS()->getSessionManager()->getUserType());
     $this->addParam('userTypeModerator', UserGroups::$MODERATOR);
     $this->addParam('userTypeAdmin', UserGroups::$ADMIN);
     $this->addParam('userTypeGuest', UserGroups::$GUEST);
 }
Пример #3
0
 public function initialize()
 {
     parent::initialize();
     $lm = TranslationManager::getInstance();
     $this->addParam('userId', NGS()->getSessionManager()->getUserId());
     $this->addParam('userType', NGS()->getSessionManager()->getUserType());
     $this->addParam('userTypeAdmin', UserGroups::$ADMIN);
     $this->addParam('userTypeGuest', UserGroups::$GUEST);
     $this->addParam("lm", $lm);
     $this->addParam("loadName", NGS()->getRoutesEngine()->getPackage());
     $this->addParam('showprofit', isset($_COOKIE['showprofit']) ? $_COOKIE['showprofit'] : 0);
 }
Пример #4
0
 public function initialize()
 {
     parent::initialize();
 }