/** * 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; }