|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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 133 of file class.ilSkinXML.php.
References $xml, ilSkinStyleXML\getCssFile(), ilSkinStyleXML\getFontDirectory(), ilSkinStyleXML\getId(), ilSkinStyleXML\getImageDirectory(), ilSkinStyleXML\getName(), ilSkinStyleXML\getSoundDirectory(), and ilSkinStyleXML\isSubstyle().
Referenced by asXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilSkinXML::addStyle | ( | ilSkinStyleXML | $style | ) |
| ilSkinStyleXML | $style |
Definition at line 159 of file class.ilSkinXML.php.
| ilSkinXML::asXML | ( | ) |
Stores the skin and all it's styles as xml.
Definition at line 102 of file class.ilSkinXML.php.
References $xml, 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 254 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 237 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 211 of file class.ilSkinXML.php.
| ilSkinXML::getId | ( | ) |
Definition at line 262 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 283 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 184 of file class.ilSkinXML.php.
References $id, 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 299 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 352 of file class.ilSkinXML.php.
References 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 315 of file class.ilSkinXML.php.
References $version.
Referenced by asXML().
Here is the caller graph for this function:| ilSkinXML::getVersionStep | ( | $version | ) |
Definition at line 333 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 198 of file class.ilSkinXML.php.
References $id, and getStyles().
Here is the call graph for this function:| ilSkinXML::hasStyles | ( | ) |
Definition at line 390 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 373 of file class.ilSkinXML.php.
References getStyle(), and getStyles().
Here is the call graph for this function:| ilSkinXML::isVersionChangeable | ( | ) |
Definition at line 343 of file class.ilSkinXML.php.
Referenced by getVersionStep(), and setVersion().
Here is the caller graph for this function:| ilSkinXML::key | ( | ) |
Definition at line 229 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 242 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 168 of file class.ilSkinXML.php.
References $id, $index, getStyles(), and ilSystemStyleException\INVALID_ID.
Here is the call graph for this function:| ilSkinXML::rewind | ( | ) |
Definition at line 246 of file class.ilSkinXML.php.
| ilSkinXML::setId | ( | $id | ) |
| $id |
| ilSystemStyleException |
Definition at line 271 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 291 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 307 of file class.ilSkinXML.php.
References $styles.
| ilSkinXML::setVersion | ( | $version | ) |
| string | $version |
Definition at line 323 of file class.ilSkinXML.php.
References $version, and isVersionChangeable().
Here is the call graph for this function:| ilSkinXML::valid | ( | ) |
Iterator implementations.
Definition at line 221 of file class.ilSkinXML.php.
References current().
Here is the call graph for this function:| ilSkinXML::writeToXMLFile | ( | $path | ) |
| $path |
Definition at line 152 of file class.ilSkinXML.php.
References asXML().
Here is the call graph for this function:
|
protected |
Definition at line 21 of file class.ilSkinXML.php.
Referenced by __construct(), getId(), getStyle(), hasStyle(), removeStyle(), and setId().
|
protected |
Definition at line 28 of file class.ilSkinXML.php.
Referenced by __construct(), getName(), and setName().
|
protected |
Definition at line 35 of file class.ilSkinXML.php.
Referenced by getStyles(), and setStyles().
|
protected |
Definition at line 42 of file class.ilSkinXML.php.
Referenced by getVersion(), getVersionStep(), and setVersion().