ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
ilSkinXml holds an manages the basic data of a skin as provide by the template of the skin. More...
Public Member Functions | |
__construct ($id, $name) | |
ilSkinXML constructor. More... | |
asXML () | |
Stores the skin and all it's styles as xml. More... | |
writeToXMLFile ($path) | |
addStyle (ilSkinStyleXML $style) | |
removeStyle ($id) | |
getStyle ($id) | |
hasStyle ($id) | |
getDefaultStyle () | |
valid () | |
Iterator implementations. More... | |
key () | |
current () | |
next () | |
rewind () | |
count () | |
Countable implementations. More... | |
getId () | |
setId ($id) | |
getName () | |
setName ($name) | |
getStyles () | |
setStyles ($styles) | |
getVersion () | |
setVersion ($version) | |
getVersionStep ($version) | |
isVersionChangeable () | |
getSubstylesOfStyle ($style_id) | |
hasStyleSubstyles ($style_id) | |
Returns wheter a given style has substyles. More... | |
hasStyles () | |
Protected Member Functions | |
addChildToXML (SimpleXMLElement $xml, ilSkinStyleXML $style) | |
Used to generate the xml for styles contained by the skin. More... | |
Protected Attributes | |
$id = "" | |
$name = "" | |
$styles = array() | |
$version = "0.1" | |
ilSkinXml holds an manages the basic data of a skin as provide by the template of the skin.
This class is also responsible to read this data from the xml and, after manipulations transfer the data back to xml.
To read a skin from xml do not use this class, us ilSkinContainer instead.
Definition at line 14 of file class.ilSkinXML.php.
ilSkinXML::__construct | ( | $id, | |
$name | |||
) |
ilSkinXML constructor.
string | $name |
Definition at line 48 of file class.ilSkinXML.php.
References $id, $name, $path, $style, ilSystemStyleException\FILE_OPENING_FAILED, ilSystemStyleException\NO_PARENT_STYLE, ilSkinStyleXML\parseFromXMLElement(), setId(), setName(), and string.
|
protected |
Used to generate the xml for styles contained by the skin.
SimpleXMLElement | $xml | |
ilSkinStyleXML | $style |
Definition at line 132 of file class.ilSkinXML.php.
References ilSkinStyleXML\getCssFile(), ilSkinStyleXML\getFontDirectory(), ilSkinStyleXML\getId(), ilSkinStyleXML\getImageDirectory(), ilSkinStyleXML\getName(), ilSkinStyleXML\getSoundDirectory(), and ilSkinStyleXML\isSubstyle().
Referenced by asXML().
ilSkinXML::addStyle | ( | ilSkinStyleXML | $style | ) |
ilSkinStyleXML | $style |
Definition at line 157 of file class.ilSkinXML.php.
References $style.
ilSkinXML::asXML | ( | ) |
Stores the skin and all it's styles as xml.
Definition at line 102 of file class.ilSkinXML.php.
References $style, addChildToXML(), getName(), getStyles(), getSubstylesOfStyle(), and getVersion().
Referenced by writeToXMLFile().
ilSkinXML::count | ( | ) |
Countable implementations.
Definition at line 242 of file class.ilSkinXML.php.
Referenced by getVersionStep(), and hasStyles().
ilSkinXML::current | ( | ) |
Definition at line 228 of file class.ilSkinXML.php.
Referenced by valid().
ilSkinXML::getDefaultStyle | ( | ) |
Definition at line 205 of file class.ilSkinXML.php.
ilSkinXML::getId | ( | ) |
Definition at line 249 of file class.ilSkinXML.php.
References $id.
Referenced by ilSystemStyleDeleteGUI\addStyle(), ilSubStyleAssignmentGUI\assignStyle(), ilSubStyleAssignmentGUI\deleteAssignments(), ilSubStyleAssignmentGUI\saveAssignment(), and ilSystemStyleSkinContainer\updateSkin().
ilSkinXML::getName | ( | ) |
Definition at line 270 of file class.ilSkinXML.php.
References $name.
Referenced by ilSystemStyleDeleteGUI\addStyle(), and asXML().
ilSkinXML::getStyle | ( | $id | ) |
$id |
ilSystemStyleException |
Definition at line 180 of file class.ilSkinXML.php.
References $id, $style, getStyles(), and ilSystemStyleException\INVALID_ID.
Referenced by ilSubStyleAssignmentGUI\assignStyle(), ilSubStyleAssignmentGUI\deleteAssignments(), getSubstylesOfStyle(), hasStyleSubstyles(), and ilSubStyleAssignmentGUI\saveAssignment().
ilSkinXML::getStyles | ( | ) |
Definition at line 286 of file class.ilSkinXML.php.
References $styles.
Referenced by asXML(), getStyle(), getSubstylesOfStyle(), hasStyle(), hasStyles(), hasStyleSubstyles(), and removeStyle().
ilSkinXML::getSubstylesOfStyle | ( | $style_id | ) |
$style_id |
Definition at line 339 of file class.ilSkinXML.php.
References $style, array, getStyle(), and getStyles().
Referenced by asXML().
ilSkinXML::getVersion | ( | ) |
Definition at line 302 of file class.ilSkinXML.php.
References $version.
Referenced by asXML().
ilSkinXML::getVersionStep | ( | $version | ) |
Definition at line 320 of file class.ilSkinXML.php.
References $version, count(), and isVersionChangeable().
ilSkinXML::hasStyle | ( | $id | ) |
$id |
Definition at line 193 of file class.ilSkinXML.php.
References $id, $style, and getStyles().
ilSkinXML::hasStyles | ( | ) |
Definition at line 376 of file class.ilSkinXML.php.
References count(), and getStyles().
ilSkinXML::hasStyleSubstyles | ( | $style_id | ) |
Returns wheter a given style has substyles.
$style_id |
Definition at line 359 of file class.ilSkinXML.php.
References $style, getStyle(), and getStyles().
ilSkinXML::isVersionChangeable | ( | ) |
Definition at line 330 of file class.ilSkinXML.php.
Referenced by getVersionStep(), and setVersion().
ilSkinXML::key | ( | ) |
Definition at line 221 of file class.ilSkinXML.php.
ilSkinXML::next | ( | ) |
Definition at line 232 of file class.ilSkinXML.php.
ilSkinXML::removeStyle | ( | $id | ) |
$id |
ilSystemStyleException |
Definition at line 165 of file class.ilSkinXML.php.
References $id, $style, getStyles(), and ilSystemStyleException\INVALID_ID.
ilSkinXML::rewind | ( | ) |
Definition at line 235 of file class.ilSkinXML.php.
ilSkinXML::setId | ( | $id | ) |
$id |
ilSystemStyleException |
Definition at line 258 of file class.ilSkinXML.php.
References $id, and ilSystemStyleException\INVALID_CHARACTERS_IN_ID.
Referenced by __construct().
ilSkinXML::setName | ( | $name | ) |
string | $name |
Definition at line 278 of file class.ilSkinXML.php.
References $name.
Referenced by __construct().
ilSkinXML::setStyles | ( | $styles | ) |
ilSkinStyleXML[] | $styles |
Definition at line 294 of file class.ilSkinXML.php.
References $styles.
ilSkinXML::setVersion | ( | $version | ) |
string | $version |
Definition at line 310 of file class.ilSkinXML.php.
References $version, and isVersionChangeable().
ilSkinXML::valid | ( | ) |
Iterator implementations.
Definition at line 214 of file class.ilSkinXML.php.
References current().
ilSkinXML::writeToXMLFile | ( | $path | ) |
$path |
Definition at line 151 of file class.ilSkinXML.php.
References $path, and asXML().
|
protected |
Definition at line 20 of file class.ilSkinXML.php.
Referenced by __construct(), getId(), getStyle(), hasStyle(), removeStyle(), and setId().
|
protected |
Definition at line 27 of file class.ilSkinXML.php.
Referenced by __construct(), getName(), and setName().
|
protected |
Definition at line 34 of file class.ilSkinXML.php.
Referenced by getStyles(), and setStyles().
|
protected |
Definition at line 41 of file class.ilSkinXML.php.
Referenced by getVersion(), getVersionStep(), and setVersion().