protected loadThemes ( array $themesConfigs ) : array | ||
$themesConfigs | array | The array containing as key the ide of the theme config (index) and as a value the relative path of the theme configuration XML file, *(not null not empty). |
return | array | The array containing all the loaded themes. |
protected function loadThemes(array $themesConfigs)
{
$themes = array();
foreach ($themesConfigs as $id => $rpath) {
$path = $this->toFullPath($rpath);
if (file_exists($path)) {
$xml = $this->loadXML($path);
if ($xml != NULL) {
$theme = $this->loadTheme($xml, $id, $rpath);
if ($theme != NULL) {
$themes[] = $theme;
}
}
}
}
return $themes;
}