/** * Returns Theme Infos as array. * * @param string $theme Name of the Theme. * @return array Theme_Info.xml as Array. */ public function getInfoArray($theme = null) { $theme_info_file = $this->getInfoFile($theme); // read theme info xml file into array $theme_info_array = \Koch\Config\Adapter\XML::readConfig($theme_info_file); #\Koch\Debug\Debug::printR($theme_info_array); // when setting array as object property remove the inner theme array $this->theme_info = $theme_info_array['theme']; return $this->theme_info; }
/** * Returns Theme Infos as array. * * @param string $theme Name of the Theme. * * @return array Theme_Info.xml as Array. */ public function getInfoArray($theme = null) { $file = $this->getThemeInfoFile($theme); $array = \Koch\Config\Adapter\XML::read($file); // when setting array as object property remove the inner theme array $this->theme_info = $array['theme']; return $this->theme_info; }