ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Public Member Functions | |
__construct (string $id, string $name, string $css_file='', string $image_directory='', string $font_directory='', string $sound_directory='', string $parent_style='') | |
getId () | |
setId (string $id) | |
getName () | |
setName (string $name) | |
getSoundDirectory () | |
setSoundDirectory (string $sound_directory) | |
getImageDirectory () | |
setImageDirectory (string $image_directory) | |
getCssFile () | |
setCssFile (string $css_file) | |
getFontDirectory () | |
setFontDirectory (string $font_directory) | |
getSubstyleOf () | |
Returns the parent style of this style if set. More... | |
setSubstyleOf (string $substyle_of) | |
Sets style as sub style of another. More... | |
isSubstyle () | |
Return wheter this style is a substyle of another. More... | |
referencesResource (string $resource) | |
Checks if a resource (folder) relative to the style is referenced by this style. More... | |
Static Public Member Functions | |
static | parseFromXMLElement (SimpleXMLElement $xml_element) |
Protected Attributes | |
string | $id = '' |
Id of the skin. More... | |
string | $name = '' |
Name of the style visible in all UI elements. More... | |
string | $sound_directory = '' |
Directory to store sound files into. More... | |
string | $image_directory = '' |
Directory to store image files into. More... | |
string | $font_directory = '' |
Directory to store fonts into. More... | |
string | $css_file = '' |
Css file name of the skin. More... | |
string | $substyle_of = '' |
Parent of the skin if set. More... | |
Definition at line 21 of file class.ilSkinStyle.php.
ilSkinStyle::__construct | ( | string | $id, |
string | $name, | ||
string | $css_file = '' , |
||
string | $image_directory = '' , |
||
string | $font_directory = '' , |
||
string | $sound_directory = '' , |
||
string | $parent_style = '' |
||
) |
Definition at line 58 of file class.ilSkinStyle.php.
References getId(), setCssFile(), setFontDirectory(), setId(), setImageDirectory(), setName(), setSoundDirectory(), and setSubstyleOf().
ilSkinStyle::getCssFile | ( | ) |
Definition at line 154 of file class.ilSkinStyle.php.
References $css_file.
Referenced by ilSkin\addChildToXML(), referencesResource(), and ilSkinStyleContainer\updateStyle().
ilSkinStyle::getFontDirectory | ( | ) |
Definition at line 164 of file class.ilSkinStyle.php.
References $font_directory.
Referenced by ilSkin\addChildToXML(), ilSkinStyleContainer\deleteStyle(), referencesResource(), and ilSkinStyleContainer\updateStyle().
ilSkinStyle::getId | ( | ) |
Definition at line 108 of file class.ilSkinStyle.php.
References $id.
Referenced by __construct(), ilSkin\addChildToXML(), ilSystemStyleDeleteGUI\addStyle(), ilSkinStyleContainer\addStyle(), ilSubStyleAssignmentGUI\assignStyle(), ilSkinStyleContainer\copyCSSFromDefault(), ilSkinStyleContainer\copyVariablesFromDefault(), ilSkinStyleContainer\createLessStructure(), ilSkinStyleContainer\createMainLessFile(), ilSubStyleAssignmentGUI\deleteAssignments(), ilSkinStyleContainer\deleteStyle(), ilSkinStyleContainer\getLessMainFileDefautContent(), ilSkinStyleContainer\resetImages(), ilSubStyleAssignmentGUI\saveAssignment(), ilSkinTest\testGetAllSubStyles(), and ilSkinTest\testUpdateParentOfStyle().
ilSkinStyle::getImageDirectory | ( | ) |
Definition at line 144 of file class.ilSkinStyle.php.
References $image_directory.
Referenced by ilSkin\addChildToXML(), ilSkinStyleContainer\deleteStyle(), referencesResource(), ilSkinStyleContainer\resetImages(), and ilSkinStyleContainer\updateStyle().
ilSkinStyle::getName | ( | ) |
Definition at line 124 of file class.ilSkinStyle.php.
References $name.
Referenced by ilSkin\addChildToXML(), ilSystemStyleDeleteGUI\addStyle(), and ilSkinStyleContainer\deleteStyle().
ilSkinStyle::getSoundDirectory | ( | ) |
Definition at line 134 of file class.ilSkinStyle.php.
References $sound_directory.
Referenced by ilSkin\addChildToXML(), ilSkinStyleContainer\deleteStyle(), referencesResource(), and ilSkinStyleContainer\updateStyle().
ilSkinStyle::getSubstyleOf | ( | ) |
Returns the parent style of this style if set.
Definition at line 177 of file class.ilSkinStyle.php.
References $substyle_of.
Referenced by ilSubStyleAssignmentGUI\assignStyle(), ilSubStyleAssignmentGUI\deleteAssignments(), ilSkinStyleContainer\deleteStyle(), isSubstyle(), and ilSubStyleAssignmentGUI\saveAssignment().
ilSkinStyle::isSubstyle | ( | ) |
Return wheter this style is a substyle of another.
Definition at line 193 of file class.ilSkinStyle.php.
References getSubstyleOf().
Referenced by ilSkin\addChildToXML(), and ilSkinStyleContainer\deleteStyle().
|
static |
ilSystemStyleException |
Definition at line 96 of file class.ilSkinStyle.php.
Referenced by ilSkinFactory\__construct().
ilSkinStyle::referencesResource | ( | string | $resource | ) |
Checks if a resource (folder) relative to the style is referenced by this style.
Used to decide if folder can be deleted.
Definition at line 201 of file class.ilSkinStyle.php.
References getCssFile(), getFontDirectory(), getImageDirectory(), and getSoundDirectory().
ilSkinStyle::setCssFile | ( | string | $css_file | ) |
Definition at line 159 of file class.ilSkinStyle.php.
References $css_file.
Referenced by __construct().
ilSkinStyle::setFontDirectory | ( | string | $font_directory | ) |
Definition at line 169 of file class.ilSkinStyle.php.
References $font_directory.
Referenced by __construct().
ilSkinStyle::setId | ( | string | $id | ) |
ilSystemStyleException |
Definition at line 116 of file class.ilSkinStyle.php.
References ilSystemStyleException\INVALID_CHARACTERS_IN_ID.
Referenced by __construct().
ilSkinStyle::setImageDirectory | ( | string | $image_directory | ) |
Definition at line 149 of file class.ilSkinStyle.php.
References $image_directory.
Referenced by __construct().
ilSkinStyle::setName | ( | string | $name | ) |
Definition at line 129 of file class.ilSkinStyle.php.
References $name.
Referenced by __construct().
ilSkinStyle::setSoundDirectory | ( | string | $sound_directory | ) |
Definition at line 139 of file class.ilSkinStyle.php.
References $sound_directory.
Referenced by __construct().
ilSkinStyle::setSubstyleOf | ( | string | $substyle_of | ) |
Sets style as sub style of another.
Definition at line 185 of file class.ilSkinStyle.php.
References $substyle_of.
Referenced by __construct().
|
protected |
Css file name of the skin.
Definition at line 51 of file class.ilSkinStyle.php.
Referenced by getCssFile(), and setCssFile().
|
protected |
Directory to store fonts into.
Definition at line 46 of file class.ilSkinStyle.php.
Referenced by getFontDirectory(), and setFontDirectory().
|
protected |
Id of the skin.
Currently css and less files are named accordingely
Definition at line 26 of file class.ilSkinStyle.php.
Referenced by getId().
|
protected |
Directory to store image files into.
Definition at line 41 of file class.ilSkinStyle.php.
Referenced by getImageDirectory(), and setImageDirectory().
|
protected |
Name of the style visible in all UI elements.
Definition at line 31 of file class.ilSkinStyle.php.
|
protected |
Directory to store sound files into.
Definition at line 36 of file class.ilSkinStyle.php.
Referenced by getSoundDirectory(), and setSoundDirectory().
|
protected |
Parent of the skin if set.
Definition at line 56 of file class.ilSkinStyle.php.
Referenced by getSubstyleOf(), and setSubstyleOf().