ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 49 of file class.ilSkinXML.php.
References $id, $name, $path, $style, $xml, 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 133 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 159 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, $xml, addChildToXML(), getName(), getStyles(), getSubstylesOfStyle(), and getVersion().
Referenced by writeToXMLFile().
ilSkinXML::count | ( | ) |
Countable implementations.
Definition at line 254 of file class.ilSkinXML.php.
Referenced by getVersionStep(), and hasStyles().
ilSkinXML::current | ( | ) |
Definition at line 237 of file class.ilSkinXML.php.
Referenced by valid().
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().
ilSkinXML::getName | ( | ) |
Definition at line 283 of file class.ilSkinXML.php.
References $name.
Referenced by ilSystemStyleDeleteGUI\addStyle(), and asXML().
ilSkinXML::getStyle | ( | $id | ) |
$id |
ilSystemStyleException |
Definition at line 184 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 299 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 352 of file class.ilSkinXML.php.
References $style, array, getStyle(), and getStyles().
Referenced by asXML().
ilSkinXML::getVersion | ( | ) |
Definition at line 315 of file class.ilSkinXML.php.
References $version.
Referenced by asXML().
ilSkinXML::getVersionStep | ( | $version | ) |
Definition at line 333 of file class.ilSkinXML.php.
References $version, count(), and isVersionChangeable().
ilSkinXML::hasStyle | ( | $id | ) |
$id |
Definition at line 198 of file class.ilSkinXML.php.
References $id, $style, and getStyles().
ilSkinXML::hasStyles | ( | ) |
Definition at line 390 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 373 of file class.ilSkinXML.php.
References $style, getStyle(), and getStyles().
ilSkinXML::isVersionChangeable | ( | ) |
Definition at line 343 of file class.ilSkinXML.php.
Referenced by getVersionStep(), and setVersion().
ilSkinXML::key | ( | ) |
Definition at line 229 of file class.ilSkinXML.php.
ilSkinXML::next | ( | ) |
Definition at line 242 of file class.ilSkinXML.php.
ilSkinXML::removeStyle | ( | $id | ) |
$id |
ilSystemStyleException |
Definition at line 168 of file class.ilSkinXML.php.
References $id, $index, $style, getStyles(), and ilSystemStyleException\INVALID_ID.
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().
ilSkinXML::setName | ( | $name | ) |
string | $name |
Definition at line 291 of file class.ilSkinXML.php.
References $name.
Referenced by __construct().
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().
ilSkinXML::valid | ( | ) |
Iterator implementations.
Definition at line 221 of file class.ilSkinXML.php.
References current().
ilSkinXML::writeToXMLFile | ( | $path | ) |
$path |
Definition at line 152 of file class.ilSkinXML.php.
References $path, and asXML().
|
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().