100 $style =
new self((
string)$xml_element->attributes()[
"id"],
101 (
string)$xml_element->attributes()[
"name"],
102 (
string)$xml_element->attributes()[
"css_file"],
103 (
string)$xml_element->attributes()[
"image_directory"],
104 (
string)$xml_element->attributes()[
"font_directory"],
105 (
string)$xml_element->attributes()[
"sound_directory"]
125 if (strpos(
$id,
' ') !==
false) {
128 $this->
id = str_replace(
" ",
"_",
$id);
setSubstyleOf($substyle_of)
Sets style as sub style of another.
getSubstyleOf()
Returns the parent style of this style if set.
static parseFromXMLElement(SimpleXMLElement $xml_element)
Add rich text string
The name of the decorator.
setSoundDirectory($sound_directory)
isSubstyle()
Return wheter this style is a substyle of another.
const INVALID_CHARACTERS_IN_ID
setFontDirectory($font_directory)
referencesResource($resource)
Checks if a resource (folder) relative to the style is referenced by this style.
setImageDirectory($image_directory)
Class for advanced editing exception handling in ILIAS.
__construct($id, $name, $css_file="", $image_directory="", $font_directory="", $sound_directory="", $parent_style="")
ilSkinStyleXML constructor.