|
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...
Inheritance diagram for ilSkinXML:
Collaboration diagram for ilSkinXML: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 | |||
| ) |
|
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 $style.
Referenced by asXML().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSkinXML::count | ( | ) |
Countable implementations.
Definition at line 242 of file class.ilSkinXML.php.
References count().
Referenced by count(), getVersionStep(), and hasStyles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSkinXML::current | ( | ) |
Definition at line 228 of file class.ilSkinXML.php.
References current().
Referenced by current(), and valid().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| ilSkinXML::getName | ( | ) |
Definition at line 270 of file class.ilSkinXML.php.
References $name.
Referenced by ilSystemStyleDeleteGUI\addStyle(), and asXML().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSkinXML::getStyles | ( | ) |
Definition at line 286 of file class.ilSkinXML.php.
References $styles.
Referenced by asXML(), getStyle(), getSubstylesOfStyle(), hasStyle(), hasStyles(), hasStyleSubstyles(), and removeStyle().
Here is the caller graph for this function:| ilSkinXML::getSubstylesOfStyle | ( | $style_id | ) |
| $style_id |
Definition at line 339 of file class.ilSkinXML.php.
References $style, getStyle(), and getStyles().
Referenced by asXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSkinXML::getVersion | ( | ) |
Definition at line 302 of file class.ilSkinXML.php.
References $version.
Referenced by asXML().
Here is the caller graph for this function:| ilSkinXML::getVersionStep | ( | $version | ) |
Definition at line 320 of file class.ilSkinXML.php.
References $version, count(), and isVersionChangeable().
Here is the call graph for this function:| ilSkinXML::hasStyle | ( | $id | ) |
| $id |
Definition at line 193 of file class.ilSkinXML.php.
References $id, $style, and getStyles().
Here is the call graph for this function:| ilSkinXML::hasStyles | ( | ) |
Definition at line 376 of file class.ilSkinXML.php.
References count(), and getStyles().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| ilSkinXML::isVersionChangeable | ( | ) |
Definition at line 330 of file class.ilSkinXML.php.
Referenced by getVersionStep(), and setVersion().
Here is the caller graph for this function:| ilSkinXML::key | ( | ) |
Definition at line 221 of file class.ilSkinXML.php.
References key().
Referenced by key().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSkinXML::next | ( | ) |
Definition at line 232 of file class.ilSkinXML.php.
References next().
Referenced by next().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSkinXML::removeStyle | ( | $id | ) |
| $id |
| ilSystemStyleException |
Definition at line 165 of file class.ilSkinXML.php.
References $id, $style, getStyles(), and ilSystemStyleException\INVALID_ID.
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| ilSkinXML::setName | ( | $name | ) |
| string | $name |
Definition at line 278 of file class.ilSkinXML.php.
References $name.
Referenced by __construct().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| ilSkinXML::valid | ( | ) |
Iterator implementations.
Definition at line 214 of file class.ilSkinXML.php.
References current().
Here is the call graph for this function:| ilSkinXML::writeToXMLFile | ( | $path | ) |
| $path |
Definition at line 151 of file class.ilSkinXML.php.
References $path, and asXML().
Here is the call graph for this function:
|
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().