public function beforeRender() { parent::beforeRender(); // if (isset($this->opravneni)) // { // $this->template->opravneni = $this->opravneni; // } }
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 } }
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; }
public function beforeRender() { parent::beforeRender(); $this->template->registerHelper('getVersion', '\\gameUpdateModel::getVersionFromFileName'); }
public function beforeRender() { parent::beforeRender(); $this->template->hash = $this->runtimeHash; }