ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
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 = [] |
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 59 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 321 of file class.ilStyleDefinition.php.
References $DIC, $version, and ilObjUser\_getNumberOfUsersForStyle().
Referenced by ilSystemStyleOverviewGUI\addSubStyleForms(), ilSystemStyleOverviewGUI\checkStyleSettings(), ilSystemStyleOverviewGUI\cloneSystemStyleForm(), ilSystemStyleOverviewGUI\edit(), ilSystemStylesTableGUI\getStyles(), and ilSystemStyleOverviewGUI\saveStyleSettings().
|
staticprotected |
Definition at line 448 of file class.ilStyleDefinition.php.
|
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 87 of file class.ilStyleDefinition.php.
References $DIC, $messages, and ilSystemStyleMessage\TYPE_ERROR.
Referenced by ilUtil\getImagePath(), ilUtil\getNewContentStyleSheetLocation(), ilUtil\getStyleSheetLocation(), ilTestPDFGenerator\getTemplatePath(), and ilTemplate\getTemplatePath().
|
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 239 of file class.ilStyleDefinition.php.
References Vendor\Package\$a, $DIC, $i, $messages, $path, $ref_id, $target_arr, ilSystemStyleConfig\getDefaultSkinId(), ilSystemStyleConfig\getDefaultStyleId(), ilSystemStyleSettings\getSystemStyleCategoryAssignments(), and ilSystemStyleMessage\TYPE_ERROR.
Referenced by ilUtil\getImagePath(), ilUtil\getNewContentStyleSheetLocation(), ilUtil\getStyleSheetLocation(), and ilTemplate\getTemplatePath().
ilStyleDefinition::getImageDirectory | ( | string | $style_id | ) |
ilSystemStyleException |
Definition at line 152 of file class.ilStyleDefinition.php.
References Vendor\Package\$e, getSkin(), ilSystemStyleException\NO_STYLE_ID, and ilSystemStyleException\NOT_EXISTING_STYLE.
ilStyleDefinition::getSkin | ( | ) |
Definition at line 438 of file class.ilStyleDefinition.php.
References $skin.
Referenced by getImageDirectory(), getSoundDirectory(), getStyle(), getStyleName(), getStyles(), and getTemplateName().
|
static |
ilSystemStyleException |
Definition at line 425 of file class.ilStyleDefinition.php.
Referenced by ilUtil\getStyleSheetLocation().
ilStyleDefinition::getSoundDirectory | ( | string | $style_id | ) |
ilSystemStyleException |
Definition at line 167 of file class.ilStyleDefinition.php.
References $DIC, $skin, $system_style_config, ilSystemStyleConfig\getCustomizingSkinPath(), ilSystemStyleConfig\getDefaultSkinId(), ilSystemStyleConfig\getDefaultTemplatePath(), ilSkin\getId(), and getSkin().
ilStyleDefinition::getStyle | ( | string | $a_id | ) |
ilSystemStyleException |
Definition at line 136 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getStyleName | ( | string | $a_id | ) |
ilSystemStyleException |
Definition at line 144 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getStyles | ( | ) |
Definition at line 123 of file class.ilStyleDefinition.php.
References getSkin().
ilStyleDefinition::getSystemStylesConf | ( | ) |
Definition at line 461 of file class.ilStyleDefinition.php.
References $system_style_config.
Referenced by __construct().
ilStyleDefinition::getTemplateName | ( | ) |
Definition at line 128 of file class.ilStyleDefinition.php.
References getSkin().
|
staticprotected |
Definition at line 456 of file class.ilStyleDefinition.php.
References $cached_all_styles_information.
|
static |
ilSystemStyleException |
Definition at line 369 of file class.ilStyleDefinition.php.
References $DIC.
|
static |
Definition at line 416 of file class.ilStyleDefinition.php.
ilStyleDefinition::setSkin | ( | ilSkin | $skin | ) |
Definition at line 443 of file class.ilStyleDefinition.php.
References $skin.
Referenced by __construct().
|
static |
ilSkin[] | $skins |
Definition at line 433 of file class.ilStyleDefinition.php.
References $skins.
ilStyleDefinition::setSystemStylesConf | ( | ilSystemStyleConfig | $system_style_config | ) |
Definition at line 466 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 217 of file class.ilStyleDefinition.php.
References ilSystemStyleConfig\getCustomizingSkinPath(), ilSystemStyleConfig\getDefaultSkinId(), and ilSystemStyleConfig\getDefaultTemplatePath().
Referenced by ilSkinFactory\copyFromSkinStyleContainer(), ilSystemStyleSettings\getCurrentDefaultSkin(), ilObjUser\read(), ilSystemStyleOverviewGUI\saveNewSystemStyle(), and ilSkinFactory\skinStyleContainerFromZip().
|
static |
ilSystemStyleException |
Definition at line 384 of file class.ilStyleDefinition.php.
Referenced by ilSystemStylesTableGUI\getStyles(), ilSystemStyleOverviewGUI\moveUserStyles(), and ilObjUser\read().
|
static |
|
static |
ilSystemStyleException |
Definition at line 397 of file class.ilStyleDefinition.php.
References $DIC, and $factory.
Referenced by ilSystemStyleSettings\getCurrentDefaultStyle(), and ilObjUser\read().
|
staticprotected |
Used for caching.
Definition at line 45 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 40 of file class.ilStyleDefinition.php.
Referenced by getSkin(), getSoundDirectory(), and setSkin().
|
protected |
Definition at line 53 of file class.ilStyleDefinition.php.
|
static |
Definition at line 35 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 51 of file class.ilStyleDefinition.php.
Referenced by getSoundDirectory(), getSystemStylesConf(), and setSystemStylesConf().