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(); }
public function __construct() { $this->file = 'navigation.json'; parent::__construct(); }
public function __construct() { $this->file = 'templates.json'; parent::__construct(); }
public function __construct() { $this->file = 'languages.json'; parent::__construct(); }