|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
ilStyleDefinition acts as a wrapper of style related actions. More...
Collaboration diagram for ilStyleDefinition: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().
Here is the call graph for this function:
|
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\getAssignmentCreationModal(), ilSystemStylesTableGUI\getStyles(), and ilSystemStyleOverviewGUI\saveStyleSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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(), ilTestHTMLGenerator\getTemplatePath(), and ilTemplate\getTemplatePath().
Here is the caller graph for this function:
|
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, $messages, $path, $ref_id, ilSystemStyleConfig\getDefaultSkinId(), ilSystemStyleConfig\getDefaultStyleId(), ilSystemStyleSettings\getSystemStyleCategoryAssignments(), and ilSystemStyleMessage\TYPE_ERROR.
Referenced by ilUtil\getImagePath(), ilUtil\getNewContentStyleSheetLocation(), ilUtil\getStyleSheetLocation(), and ilTemplate\getTemplatePath().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:| ilStyleDefinition::getSkin | ( | ) |
Definition at line 438 of file class.ilStyleDefinition.php.
References $skin.
Referenced by getImageDirectory(), getSoundDirectory(), getStyle(), getStyleName(), getStyles(), and getTemplateName().
Here is the caller graph for this function:
|
static |
| ilSystemStyleException |
Definition at line 425 of file class.ilStyleDefinition.php.
Referenced by ilUtil\getStyleSheetLocation().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| ilStyleDefinition::getStyle | ( | string | $a_id | ) |
| ilSystemStyleException |
Definition at line 136 of file class.ilStyleDefinition.php.
References getSkin().
Here is the call graph for this function:| ilStyleDefinition::getStyleName | ( | string | $a_id | ) |
| ilSystemStyleException |
Definition at line 144 of file class.ilStyleDefinition.php.
References getSkin().
Here is the call graph for this function:| ilStyleDefinition::getStyles | ( | ) |
Definition at line 123 of file class.ilStyleDefinition.php.
References getSkin().
Here is the call graph for this function:| ilStyleDefinition::getSystemStylesConf | ( | ) |
Definition at line 461 of file class.ilStyleDefinition.php.
References $system_style_config.
Referenced by __construct().
Here is the caller graph for this function:| ilStyleDefinition::getTemplateName | ( | ) |
Definition at line 128 of file class.ilStyleDefinition.php.
References getSkin().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| ilSystemStyleException |
Definition at line 384 of file class.ilStyleDefinition.php.
Referenced by ilSystemStylesTableGUI\getStyles(), ilSystemStyleOverviewGUI\moveUserStyles(), and ilObjUser\read().
Here is the caller graph for this function:
|
static |
|
static |
| ilSystemStyleException |
Definition at line 397 of file class.ilStyleDefinition.php.
References $DIC.
Referenced by ilSystemStyleSettings\getCurrentDefaultStyle(), and ilObjUser\read().
Here is the caller graph for this function:
|
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().