ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
ilStyleDefinition acts as a wrapper of style related actions. More...
Public Member Functions | |
__construct (string $skin_id='', ?ilSystemStyleConfig $system_style_config=null) | |
ilStyleDefinition constructor. More... | |
getStyles () | |
getTemplateName () | |
getStyle (string $a_id) | |
getStyleName (string $a_id) | |
getImageDirectory (string $style_id) | |
getSoundDirectory (string $style_id) | |
getSkin () | |
setSkin (ilSkin $skin) | |
getSystemStylesConf () | |
setSystemStylesConf (ilSystemStyleConfig $system_style_config) | |
Static Public Member Functions | |
static | getCurrentSkin () |
get the current skin use always this function instead of getting the account's skin the current skin may be changed on the fly by setCurrentSkin() More... | |
static | skinExists (string $skin_id, ?ilSystemStyleConfig $system_style_config=null) |
Check whether a skin exists. More... | |
static | getCurrentStyle () |
get the current style or sub style use always this function instead of getting the account's style the current style may be changed on the fly by setCurrentStyle() More... | |
static | getAllSkinStyles () |
Get all skins/styles as array (convenient for tables) Attention: tempalte_name/template_id in this array is only used for legacy reasons an might be removed in future. More... | |
static | setCurrentSkin (string $a_skin) |
static | styleExists (string $style_id) |
static | styleExistsForSkinId (string $skin_id, string $style_id) |
static | styleExistsForCurrentSkin (string $style_id) |
static | setCurrentStyle (string $a_style) |
static | getSkins () |
static | setSkins (array $skins) |
Static Public Attributes | |
static string | $current_style |
currently selected style, used for caching More... | |
static array | $skins = null |
Skins available, used for caching. More... | |
Static Protected Member Functions | |
static | getCachedAllStylesInformation () |
static | setCachedAllStylesInformation (array $cached_all_styles_information) |
Protected Attributes | |
ilSkin | $skin |
Sets the current skin. More... | |
ilSystemStyleConfig | $system_style_config |
Used to wire this component up with the correct paths into the customizing directory. More... | |
ilSkinFactory | $skin_factory |
Static Protected Attributes | |
static array | $cached_all_styles_information |
Used for caching. More... | |
ilStyleDefinition acts as a wrapper of style related actions.
See Readme for Details.
Definition at line 24 of file class.ilStyleDefinition.php.
ilStyleDefinition::__construct | ( | string | $skin_id = '' , |
?ilSystemStyleConfig | $system_style_config = null |
||
) |
ilStyleDefinition constructor.
ilSystemStyleException |
Definition at line 58 of file class.ilStyleDefinition.php.
References $DIC, getSystemStylesConf(), setSkin(), and setSystemStylesConf().
|
static |
Get all skins/styles as array (convenient for tables) Attention: tempalte_name/template_id in this array is only used for legacy reasons an might be removed in future.
ilSystemStyleException |
Definition at line 320 of file class.ilStyleDefinition.php.
References $DIC, $version, and ilObjUser\_getNumberOfUsersForStyle().
Referenced by ilSystemStyleOverviewGUI\checkStyleSettings(), ilSystemStyleOverviewGUI\getAssignmentCreationModal(), ilSystemStylesTableGUI\getStyles(), and ilSystemStyleOverviewGUI\saveStyleSettings().
|
staticprotected |
Definition at line 447 of file class.ilStyleDefinition.php.
References null.
|
static |
get the current skin use always this function instead of getting the account's skin the current skin may be changed on the fly by setCurrentSkin()
Definition at line 86 of file class.ilStyleDefinition.php.
References $DIC, $messages, null, and ilSystemStyleMessage\TYPE_ERROR.
Referenced by ilTemplate\getCurrentSkin(), ilUtil\getImagePath(), ilUtil\getNewContentStyleSheetLocation(), ilUtil\getStyleSheetLocation(), ilTestHTMLGenerator\getTemplatePath(), and ilImagePathResolver\resolveImagePath().
|
static |
get the current style or sub style use always this function instead of getting the account's style the current style may be changed on the fly by setCurrentStyle()
ilSystemStyleException |
Definition at line 238 of file class.ilStyleDefinition.php.
References Vendor\Package\$a, $DIC, $messages, $path, $ref_id, ilSystemStyleConfig\getDefaultSkinId(), ilSystemStyleConfig\getDefaultStyleId(), ilSystemStyleSettings\getSystemStyleCategoryAssignments(), null, and ilSystemStyleMessage\TYPE_ERROR.
Referenced by ilTemplate\getCurrentStyle(), ilUtil\getImagePath(), ilUtil\getNewContentStyleSheetLocation(), ilUtil\getStyleSheetLocation(), and ilImagePathResolver\resolveImagePath().
ilStyleDefinition::getImageDirectory | ( | string | $style_id | ) |
ilSystemStyleException |
Definition at line 151 of file class.ilStyleDefinition.php.
References Vendor\Package\$e, getSkin(), ilSystemStyleException\NO_STYLE_ID, and ilSystemStyleException\NOT_EXISTING_STYLE.
ilStyleDefinition::getSkin | ( | ) |
Definition at line 437 of file class.ilStyleDefinition.php.
References $skin.
Referenced by getImageDirectory(), getSoundDirectory(), getStyle(), getStyleName(), getStyles(), and getTemplateName().
|
static |
ilSystemStyleException |
Definition at line 424 of file class.ilStyleDefinition.php.
Referenced by ilUtil\getStyleSheetLocation().
ilStyleDefinition::getSoundDirectory | ( | string | $style_id | ) |
ilSystemStyleException |
Definition at line 166 of file class.ilStyleDefinition.php.
References $DIC, $skin, $system_style_config, ilSystemStyleConfig\getCustomizingSkinPath(), ilSystemStyleConfig\getDefaultSkinId(), ilSystemStyleConfig\getDefaultTemplatePath(), ilSkin\getId(), getSkin(), and null.
ilStyleDefinition::getStyle | ( | string | $a_id | ) |
ilSystemStyleException |
Definition at line 135 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getStyleName | ( | string | $a_id | ) |
ilSystemStyleException |
Definition at line 143 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getStyles | ( | ) |
Definition at line 122 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getSystemStylesConf | ( | ) |
Definition at line 460 of file class.ilStyleDefinition.php.
References $system_style_config.
Referenced by __construct().
ilStyleDefinition::getTemplateName | ( | ) |
Definition at line 127 of file class.ilStyleDefinition.php.
References getSkin().
|
staticprotected |
Definition at line 455 of file class.ilStyleDefinition.php.
References $cached_all_styles_information.
|
static |
ilSystemStyleException |
Definition at line 368 of file class.ilStyleDefinition.php.
References $DIC.
|
static |
Definition at line 415 of file class.ilStyleDefinition.php.
ilStyleDefinition::setSkin | ( | ilSkin | $skin | ) |
Definition at line 442 of file class.ilStyleDefinition.php.
References $skin.
Referenced by __construct().
|
static |
ilSkin[] | $skins |
Definition at line 432 of file class.ilStyleDefinition.php.
References $skins.
ilStyleDefinition::setSystemStylesConf | ( | ilSystemStyleConfig | $system_style_config | ) |
Definition at line 465 of file class.ilStyleDefinition.php.
References $system_style_config.
Referenced by __construct().
|
static |
Check whether a skin exists.
Not using array_key_exists($skin_id,self::getAllSkins()); for performance reasons
Definition at line 216 of file class.ilStyleDefinition.php.
References ilSystemStyleConfig\getCustomizingSkinPath(), ilSystemStyleConfig\getDefaultSkinId(), and ilSystemStyleConfig\getDefaultTemplatePath().
Referenced by ilSystemStyleSettings\getCurrentDefaultSkin(), and ilObjUser\read().
|
static |
ilSystemStyleException |
Definition at line 383 of file class.ilStyleDefinition.php.
Referenced by ilSystemStylesTableGUI\getStyles(), ilSystemStyleOverviewGUI\moveUserStyles(), and ilObjUser\read().
|
static |
|
static |
ilSystemStyleException |
Definition at line 396 of file class.ilStyleDefinition.php.
References $DIC.
Referenced by ilSystemStyleSettings\getCurrentDefaultStyle(), and ilObjUser\read().
|
staticprotected |
Used for caching.
Definition at line 44 of file class.ilStyleDefinition.php.
Referenced by setCachedAllStylesInformation().
|
static |
currently selected style, used for caching
Definition at line 29 of file class.ilStyleDefinition.php.
|
protected |
Sets the current skin.
This is used by the global instance of this class.
Definition at line 39 of file class.ilStyleDefinition.php.
Referenced by getSkin(), getSoundDirectory(), and setSkin().
|
protected |
Definition at line 52 of file class.ilStyleDefinition.php.
|
static |
Skins available, used for caching.
Definition at line 34 of file class.ilStyleDefinition.php.
Referenced by setSkins().
|
protected |
Used to wire this component up with the correct paths into the customizing directory.
This is dynamic and not constant for this class to remain testable
Definition at line 50 of file class.ilStyleDefinition.php.
Referenced by getSoundDirectory(), getSystemStylesConf(), and setSystemStylesConf().