19declare(strict_types=1);
26 protected string $id =
'';
70 string $parent_style =
''
79 if ($image_directory ==
'') {
104 (string) $xml_element->attributes()[
'id'],
105 (string) $xml_element->attributes()[
'name'],
106 (string) $xml_element->attributes()[
'css_file'],
107 (string) $xml_element->attributes()[
'image_directory'],
108 (string) $xml_element->attributes()[
'font_directory'],
109 (string) $xml_element->attributes()[
'sound_directory']
123 if (strpos(
$id,
' ') !==
false) {
126 $this->
id = str_replace(
' ',
'_',
$id);
string $css_file
Css file name of the skin.
setFontDirectory(string $font_directory)
string $name
Name of the style visible in all UI elements.
isSubstyle()
Return wheter this style is a substyle of another.
setCssFile(string $css_file)
string $sound_directory_name
Directory to store sound files into.
string $id
Id of the skin.
string $font_directory
Directory to store fonts into.
__construct(string $id, string $name, string $css_file='', string $image_directory='', string $font_directory='', string $sound_directory='', string $parent_style='')
getSubstyleOf()
Returns the parent style of this style if set.
string $sound_directory
Directory to store sound into.
setSoundDirectory(string $sound_directory)
string $image_directory
Directory to store image files into.
setImageDirectory(string $image_directory)
string $substyle_of
Parent of the skin if set.
static parseFromXMLElement(SimpleXMLElement $xml_element)
setSubstyleOf(string $substyle_of)
Sets style as sub style of another.
Class for advanced editing exception handling in ILIAS.
const INVALID_CHARACTERS_IN_ID