19declare(strict_types=1);
26 protected string $id =
'';
65 string $parent_style =
''
74 if ($image_directory ==
'') {
99 (string) $xml_element->attributes()[
'id'],
100 (string) $xml_element->attributes()[
'name'],
101 (string) $xml_element->attributes()[
'css_file'],
102 (string) $xml_element->attributes()[
'image_directory'],
103 (string) $xml_element->attributes()[
'font_directory'],
104 (string) $xml_element->attributes()[
'sound_directory']
118 if (strpos(
$id,
' ') !==
false) {
121 $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 $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.
referencesResource(string $resource)
Checks if a resource (folder) relative to the style is referenced by this style.
string $sound_directory
Directory to store sound files 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