예제 #1
0
 public function beforeRender()
 {
     parent::beforeRender();
     //        if (isset($this->opravneni))
     //        {
     //            $this->template->opravneni = $this->opravneni;
     //        }
 }
예제 #2
0
 public function beforeRender()
 {
     parent::beforeRender();
     $nullUsers = $this->userRepository->findBy(array('uuid' => NULL, 'NOT mcname' => NULL));
     try {
         foreach ($nullUsers as $user) {
             $identity = $this->uuidModel->getUuid($user->mcname, TRUE);
             $this->userRepository->setUUID($user->id, $identity['uuid']);
             $this->userRepository->setMcNick($user->id, $identity['name']);
         }
     } catch (RuntimeException $exc) {
         //echo nothing critical
     }
 }
예제 #3
0
 public function beforeRender()
 {
     parent::beforeRender();
     if (isset($this->id)) {
         if (!isset($this->rubrika)) {
             $this->rubrika = $this->redakce->findRubrikuById($this->id);
         }
         $this->template->rubrika = $this->rubrika;
     }
     if (isset($this->id_clanku)) {
         if (!isset($this->clanek)) {
             $this->clanek = $this->redakce->findClanekById($this->id_clanku);
         }
         $this->template->clanek = $this->clanek;
     }
     $this->template->id_hlavni_skupiny = $this->redakce->id_hlavni_skupiny;
     if (isset($this->opravneni)) {
         $this->template->opravneni = $this->opravneni;
     }
     $datum = new NDateTime53($this->redakce->zobrazit_od_datum_neschvaleneho_clanku . ' ' . $this->redakce->zobrazit_od_cas_neschvaleneho_clanku);
     $this->template->zobrazit_od_neschvaleneho_clanku = $datum;
     $this->template->backlink = $this->backlink;
 }
예제 #4
0
 public function beforeRender()
 {
     parent::beforeRender();
     $this->template->registerHelper('getVersion', '\\gameUpdateModel::getVersionFromFileName');
 }
예제 #5
0
 public function beforeRender()
 {
     parent::beforeRender();
     $this->template->hash = $this->runtimeHash;
 }