Beispiel #1
0
 public function __construct($pageKey)
 {
     if (!Validator::checkPageKey($pageKey)) {
         throw new SalicException("Invalid pagekey format: '{$pageKey}'");
     }
     $this->pageKey = $pageKey;
     //Utils::mkdirs(self::baseDir . "data/$pageKey");
     if (!is_dir(self::baseDir . "pages/{$pageKey}")) {
         throw new SalicSettingsException("No page config for: '{$pageKey}'", "pages/{$pageKey}");
     }
     $this->file = 'pages/' . $pageKey . '/page.json';
     parent::__construct();
 }
Beispiel #2
0
 public function __construct()
 {
     $this->file = 'navigation.json';
     parent::__construct();
 }
Beispiel #3
0
 public function __construct()
 {
     $this->file = 'templates.json';
     parent::__construct();
 }
Beispiel #4
0
 public function __construct()
 {
     $this->file = 'languages.json';
     parent::__construct();
 }