| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
ilSkin holds an manages the basic data of a skin as provide by the template of the skin. More...
 Inheritance diagram for ilSkin:
 Collaboration diagram for ilSkin:Public Member Functions | |
| __construct (string $id, string $name) | |
| asXML () | |
| Stores the skin and all it's styles as xml.  More... | |
| writeToXMLFile (string $path) | |
| addStyle (ilSkinStyle $style) | |
| removeStyle (string $id) | |
| getStyle (string $id) | |
| hasStyle (string $id) | |
| getDefaultStyle () | |
| valid () | |
| key () | |
| current () | |
| next () | |
| rewind () | |
| count () | |
| getId () | |
| setId (string $id) | |
| getName () | |
| setName (string $name) | |
| getStyles () | |
| setStyles (array $styles) | |
| getVersion () | |
| setVersion (string $version) | |
| getVersionStep (string $version) | |
| isVersionChangeable () | |
| updateParentStyleOfSubstyles (string $old_parent_style_id, string $new_parent_style_id) | |
| getSubstylesOfStyle (string $style_id) | |
| hasStyleSubstyles (string $style_id) | |
| Returns wheter a given style has substyles.  More... | |
| hasStyles () | |
Protected Member Functions | |
| addChildToXML (SimpleXMLElement $xml, ilSkinStyle $style) | |
| Used to generate the xml for styles contained by the skin.  More... | |
Protected Attributes | |
| string | $id = '' | 
| ID of the skin, equals the name of the folder this skin is stored in.  More... | |
| string | $name = '' | 
| Name of the skin, as provided in the template.  More... | |
| array | $styles = [] | 
| string | $version = '0.1' | 
| Version of skin, as provided by the template.  More... | |
ilSkin 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 27 of file class.ilSkin.php.
| ilSkin::__construct | ( | string | $id, | 
| string | $name | ||
| ) | 
Definition at line 52 of file class.ilSkin.php.
References setId(), and setName().
 Here is the call graph for this function:
      
  | 
  protected | 
Used to generate the xml for styles contained by the skin.
Definition at line 87 of file class.ilSkin.php.
References ilSkinStyle\getCssFile(), ilSkinStyle\getFontDirectory(), ilSkinStyle\getId(), ilSkinStyle\getImageDirectory(), ilSkinStyle\getName(), ilSkinStyle\getSoundDirectory(), and ilSkinStyle\isSubstyle().
Referenced by asXML().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSkin::addStyle | ( | ilSkinStyle | $style | ) | 
Definition at line 107 of file class.ilSkin.php.
| ilSkin::asXML | ( | ) | 
Stores the skin and all it's styles as xml.
Definition at line 61 of file class.ilSkin.php.
References addChildToXML(), getName(), getStyles(), getSubstylesOfStyle(), and getVersion().
Referenced by ilSkinFactoryTest\testSkinFromXML(), and writeToXMLFile().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSkin::count | ( | ) | 
Definition at line 179 of file class.ilSkin.php.
Referenced by getVersionStep(), and hasStyles().
 Here is the caller graph for this function:| ilSkin::current | ( | ) | 
Definition at line 164 of file class.ilSkin.php.
Referenced by valid().
 Here is the caller graph for this function:| ilSkin::getDefaultStyle | ( | ) | 
Definition at line 149 of file class.ilSkin.php.
| ilSkin::getId | ( | ) | 
Definition at line 184 of file class.ilSkin.php.
References $id.
Referenced by ilSubStyleAssignmentGUI\assignStyle(), ilSubStyleAssignmentGUI\deleteAssignments(), ilStyleDefinition\getSoundDirectory(), and ilSubStyleAssignmentGUI\saveAssignment().
 Here is the caller graph for this function:| ilSkin::getName | ( | ) | 
Definition at line 200 of file class.ilSkin.php.
References $name.
Referenced by asXML().
 Here is the caller graph for this function:| ilSkin::getStyle | ( | string | $id | ) | 
| ilSystemStyleException | 
Definition at line 129 of file class.ilSkin.php.
References $id, getStyles(), and ilSystemStyleException\INVALID_ID.
Referenced by ilSubStyleAssignmentGUI\assignStyle(), ilSubStyleAssignmentGUI\deleteAssignments(), and ilSubStyleAssignmentGUI\saveAssignment().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSkin::getStyles | ( | ) | 
Definition at line 213 of file class.ilSkin.php.
References $styles.
Referenced by asXML(), getStyle(), getSubstylesOfStyle(), hasStyle(), hasStyles(), hasStyleSubstyles(), and removeStyle().
 Here is the caller graph for this function:| ilSkin::getSubstylesOfStyle | ( | string | $style_id | ) | 
Definition at line 266 of file class.ilSkin.php.
References getStyles().
Referenced by asXML(), and updateParentStyleOfSubstyles().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSkin::getVersion | ( | ) | 
Definition at line 226 of file class.ilSkin.php.
References $version.
Referenced by asXML().
 Here is the caller graph for this function:| ilSkin::getVersionStep | ( | string | $version | ) | 
Definition at line 238 of file class.ilSkin.php.
References $version, count(), ILIAS\Repository\int(), and isVersionChangeable().
 Here is the call graph for this function:| ilSkin::hasStyle | ( | string | $id | ) | 
Definition at line 139 of file class.ilSkin.php.
References $id, and getStyles().
 Here is the call graph for this function:| ilSkin::hasStyles | ( | ) | 
Definition at line 296 of file class.ilSkin.php.
References count(), and getStyles().
 Here is the call graph for this function:| ilSkin::hasStyleSubstyles | ( | string | $style_id | ) | 
Returns wheter a given style has substyles.
Definition at line 284 of file class.ilSkin.php.
References getStyles().
Referenced by updateParentStyleOfSubstyles().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSkin::isVersionChangeable | ( | ) | 
Definition at line 249 of file class.ilSkin.php.
Referenced by getVersionStep(), and setVersion().
 Here is the caller graph for this function:| ilSkin::key | ( | ) | 
Definition at line 159 of file class.ilSkin.php.
| ilSkin::next | ( | ) | 
Definition at line 169 of file class.ilSkin.php.
| ilSkin::removeStyle | ( | string | $id | ) | 
| ilSystemStyleException | 
Definition at line 115 of file class.ilSkin.php.
References $id, getStyles(), and ilSystemStyleException\INVALID_ID.
 Here is the call graph for this function:| ilSkin::rewind | ( | ) | 
Definition at line 174 of file class.ilSkin.php.
| ilSkin::setId | ( | string | $id | ) | 
| ilSystemStyleException | 
Definition at line 192 of file class.ilSkin.php.
References ilSystemStyleException\INVALID_CHARACTERS_IN_ID.
Referenced by __construct().
 Here is the caller graph for this function:| ilSkin::setName | ( | string | $name | ) | 
Definition at line 205 of file class.ilSkin.php.
References $name.
Referenced by __construct().
 Here is the caller graph for this function:| ilSkin::setStyles | ( | array | $styles | ) | 
| ilSkinStyle[] | $styles | 
Definition at line 221 of file class.ilSkin.php.
References $styles.
| ilSkin::setVersion | ( | string | $version | ) | 
Definition at line 231 of file class.ilSkin.php.
References $version, and isVersionChangeable().
Referenced by ilSkinFactory\__construct().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilSkin::updateParentStyleOfSubstyles | ( | string | $old_parent_style_id, | 
| string | $new_parent_style_id | ||
| ) | 
Definition at line 254 of file class.ilSkin.php.
References getSubstylesOfStyle(), and hasStyleSubstyles().
 Here is the call graph for this function:| ilSkin::valid | ( | ) | 
Definition at line 154 of file class.ilSkin.php.
References current().
 Here is the call graph for this function:| ilSkin::writeToXMLFile | ( | string | $path | ) | 
Definition at line 102 of file class.ilSkin.php.
References asXML().
 Here is the call graph for this function:
      
  | 
  protected | 
ID of the skin, equals the name of the folder this skin is stored in.
Definition at line 32 of file class.ilSkin.php.
Referenced by getId(), getStyle(), hasStyle(), and removeStyle().
      
  | 
  protected | 
Name of the skin, as provided in the template.
Definition at line 38 of file class.ilSkin.php.
      
  | 
  protected | 
Definition at line 45 of file class.ilSkin.php.
Referenced by getStyles(), and setStyles().
      
  | 
  protected | 
Version of skin, as provided by the template.
Definition at line 50 of file class.ilSkin.php.
Referenced by getVersion(), getVersionStep(), and setVersion().