protected function getThemeData($dirName) { if (!($theme = CmsTheme::load($dirName))) { throw new Exception(Lang::get('Unable to find theme with name :name', $dirName)); } $model = ThemeData::forTheme($theme); return $model; }
/** * Determine if an attribute exists on the object. * @param string $key * @return void */ public function __isset($key) { if ($this->hasCustomData()) { $theme = ThemeData::forTheme($this); return isset($theme->{$key}); } return false; }
protected function getThemeData($dirName) { $theme = $this->findThemeObject($dirName); $model = ThemeData::forTheme($theme); return $model; }
/** * Returns data specific to this theme * @return Cms\Models\ThemeData */ public function getCustomData() { return ThemeData::forTheme($this); }