ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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, $system_style_config, getCurrentSkin(), 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 317 of file class.ilStyleDefinition.php.
References $DIC, $skin, $skins, $version, ilObjUser\_getNumberOfUsersForStyle(), getCachedAllStylesInformation(), ilSkin\getId(), ilSkin\getName(), ilSkin\getStyle(), ilSkin\getStyles(), ilSkin\getVersion(), and setCachedAllStylesInformation().
Referenced by ilSystemStyleOverviewGUI\checkStyleSettings(), ilSystemStyleOverviewGUI\getAssignmentCreationModal(), ilSystemStylesTableGUI\getStyles(), and ilSystemStyleOverviewGUI\saveStyleSettings().
|
staticprotected |
Definition at line 444 of file class.ilStyleDefinition.php.
References $cached_all_styles_information.
Referenced by getAllSkinStyles().
|
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, and ilSystemStyleMessage\TYPE_ERROR.
Referenced by __construct(), ilTemplate\getCurrentSkin(), ilUtil\getNewContentStyleSheetLocation(), 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 235 of file class.ilStyleDefinition.php.
References Vendor\Package\$a, $current_style, $DIC, $messages, $path, $ref_id, $system_style_config, ilSystemStyleConfig\getDefaultSkinId(), ilSystemStyleConfig\getDefaultStyleId(), ilSystemStyleSettings\getSystemStyleCategoryAssignments(), setCurrentSkin(), setCurrentStyle(), and ilSystemStyleMessage\TYPE_ERROR.
Referenced by ilTemplate\getCurrentStyle(), ilUtil\getNewContentStyleSheetLocation(), ilUtil\getStyleSheetLocation(), and ilImagePathResolver\resolveImagePath().
ilStyleDefinition::getImageDirectory | ( | string | $style_id | ) |
ilSystemStyleException |
Definition at line 148 of file class.ilStyleDefinition.php.
References Vendor\Package\$e, getSkin(), ilSystemStyleException\NO_STYLE_ID, and ilSystemStyleException\NOT_EXISTING_STYLE.
ilStyleDefinition::getSkin | ( | ) |
Definition at line 434 of file class.ilStyleDefinition.php.
References $skin.
Referenced by getImageDirectory(), getSoundDirectory(), getStyle(), getStyleName(), getStyles(), and getTemplateName().
|
static |
ilSystemStyleException |
Definition at line 421 of file class.ilStyleDefinition.php.
ilStyleDefinition::getSoundDirectory | ( | string | $style_id | ) |
ilSystemStyleException |
Definition at line 163 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getStyle | ( | string | $a_id | ) |
ilSystemStyleException |
Definition at line 132 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getStyleName | ( | string | $a_id | ) |
ilSystemStyleException |
Definition at line 140 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getStyles | ( | ) |
Definition at line 119 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getSystemStylesConf | ( | ) |
Definition at line 457 of file class.ilStyleDefinition.php.
References $system_style_config.
Referenced by __construct().
ilStyleDefinition::getTemplateName | ( | ) |
Definition at line 124 of file class.ilStyleDefinition.php.
References getSkin().
|
staticprotected |
Definition at line 452 of file class.ilStyleDefinition.php.
References $cached_all_styles_information.
Referenced by getAllSkinStyles().
|
static |
ilSystemStyleException |
Definition at line 365 of file class.ilStyleDefinition.php.
References $DIC.
Referenced by getCurrentStyle().
|
static |
Definition at line 412 of file class.ilStyleDefinition.php.
Referenced by getCurrentStyle().
ilStyleDefinition::setSkin | ( | ilSkin | $skin | ) |
Definition at line 439 of file class.ilStyleDefinition.php.
References $skin.
Referenced by __construct().
|
static |
ilSkin[] | $skins |
Definition at line 429 of file class.ilStyleDefinition.php.
References $skins.
ilStyleDefinition::setSystemStylesConf | ( | ilSystemStyleConfig | $system_style_config | ) |
Definition at line 462 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 213 of file class.ilStyleDefinition.php.
References $system_style_config, ilSystemStyleConfig\getCustomizingSkinPath(), ilSystemStyleConfig\getDefaultSkinId(), and ilSystemStyleConfig\getDefaultTemplatePath().
Referenced by ilSystemStyleSettings\getCurrentDefaultSkin(), and ilObjUser\readPrefs().
|
static |
ilSystemStyleException |
Definition at line 380 of file class.ilStyleDefinition.php.
References $skin, and ilSkin\hasStyle().
Referenced by ilSystemStylesTableGUI\getStyles(), ilSystemStyleOverviewGUI\moveUserStyles(), and ilObjUser\readPrefs().
|
static |
Definition at line 405 of file class.ilStyleDefinition.php.
References $DIC.
|
static |
ilSystemStyleException |
Definition at line 393 of file class.ilStyleDefinition.php.
References $DIC, $skin, and ilSkin\hasStyle().
Referenced by ilSystemStyleSettings\getCurrentDefaultStyle(), and ilObjUser\readPrefs().
|
staticprotected |
Used for caching.
Definition at line 44 of file class.ilStyleDefinition.php.
Referenced by getCachedAllStylesInformation(), and setCachedAllStylesInformation().
|
static |
currently selected style, used for caching
Definition at line 29 of file class.ilStyleDefinition.php.
Referenced by getCurrentStyle().
|
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 getAllSkinStyles(), getSkin(), setSkin(), styleExists(), and styleExistsForSkinId().
|
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 getAllSkinStyles(), and 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 __construct(), getCurrentStyle(), getSystemStylesConf(), setSystemStylesConf(), and skinExists().