Пример #1
0
 public function __construct($support)
 {
     parent::__construct($support);
     $this->reservations = new Reservations($this->pdo);
     $this->events = new Events($this->pdo);
     $this->gameTypes = new GameTypes($this->pdo);
 }
Пример #2
0
 public function __construct($support)
 {
     parent::__construct($support);
     $this->reservations = new Reservations($this->pdo);
     $this->gameTypes = new GameTypes($this->pdo);
     $this->twig = $support['twig'];
     $this->layout = "ajax.twig";
 }
Пример #3
0
 public function __construct($support)
 {
     parent::__construct($support);
     if (!$this->pdo) {
         return;
     }
     $this->reservaions = new Reservations($this->pdo);
     $this->gameTypes = new GameTypes($this->pdo);
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     $this->user_model = \models\User::getInstance();
     $groups = \models\UserGroup::getInstance()->getAllGroups();
     foreach ($groups as $g) {
         $this->groups[$g->id] = $g;
     }
 }
Пример #5
0
 public function __construct()
 {
     parent::__construct();
     if (!$this->isLogged()) {
         $this->addPopup('danger', 'Do této sekce mají přístup pouze někteří přihlášení uživatelé. Pro vstup se prosíme přihlašte.');
         redirectTo('/');
     } elseif (!$this->isAdmin() && !$this->isEditor()) {
         $this->addPopup('danger', 'Do této sekce bohužel nemáte přístup.');
         redirectTo('/');
     }
 }
Пример #6
0
 public function __construct()
 {
     parent::__construct();
     $this->template = 'Views/basic_template.phtml';
     $this->data["referersURI"] = getReferersURIEnd();
     $this->data['title'] = 'Starling';
     $this->data['keywords'] = 'starling, code-sharer';
     $this->data['description'] = 'Starling is web application to sharing code between users and the public.';
     $this->addBeforeAll("prepareFlashMessages");
     $this->addBeforeAll("loadUser");
     $this->data["loggedUser"] = NULL;
     $emailConf = (require "conf/emailLocalConf.php");
     $this->siteURL = $emailConf["siteURL"];
     $this->emailAddress = $emailConf["emailAddress"];
     $this->emailPassword = $emailConf["emailPassword"];
 }
Пример #7
0
 public function __construct($bootstrap)
 {
     parent::__construct($bootstrap);
 }
Пример #8
0
 public function __construct($support)
 {
     parent::__construct($support);
     $this->gameTypes = new GameTypes($this->pdo);
 }
Пример #9
0
 /**
  * hata kaydeder to $this->_error
  *
  * @param string $error
  */
 public function __construct($error)
 {
     parent::__construct();
     $this->_error = $error;
 }
Пример #10
0
 public function __construct($support)
 {
     parent::__construct($support);
 }
Пример #11
0
 public function __construct($support)
 {
     parent::__construct($support);
     $this->layout = "letiste.twig";
 }