19 declare(strict_types=1);
    45     public function skinFromXML(
string $path = 
''): 
ilSkin    47         if (strpos(
$path, 
'../') === 0) { 
    48             $path = realpath(__DIR__ . 
'/../../../../../../templates/' . 
$path);
    58         $skin = 
new ilSkin(
$id, (
string) $xml->attributes()[
'name']);
    59         $skin->
setVersion((
string) $xml->attributes()[
'version']);
    66         foreach ($xml->children() as $style_xml) {
    72             if ($style_xml->getName() == 
'substyle') {
    76                 $style->setSubstyleOf($last_style->getId());
    80             $skin->addStyle($style);
    98         if ($skin_id != 
'default' && $skin_id != 
'other') {
   101                 $this->skinFromXML($this->config->getCustomizingSkinPath() . $skin_id . 
'/template.xml'),
   108                 $this->skinFromXML($this->config->getDefaultTemplatePath()),
 
static parseFromXMLElement(SimpleXMLElement $xml_element)
 
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
 
ilSystemStyleConfig $config
 
setVersion(string $version)
 
This class is responsible for all file system related actions related actions of a skin such as copyi...
 
skinStyleContainerFromId(string $skin_id, ilSystemStyleMessageStack $message_stack)
Get container class is responsible for all file system related actions related actions of a skin such...
 
const FILE_OPENING_FAILED
 
__construct(Language $lng, ?ilSystemStyleConfig $config=null)
 
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
Used to stack messages to be shown to the user. 
 
ilSkin holds an manages the basic data of a skin as provide by the template of the skin...