ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
This class acts as Model for all system styles settings related settings such as activated or default system styles etc, be it in database or inifile. More...
Static Public Member Functions | |
static | _lookupActivatedStyle (string $a_skin, string $a_style) |
lookup if a style is activated More... | |
static | _deactivateStyle (string $a_skin, string $a_style) |
deactivate system style More... | |
static | _activateStyle (string $a_skin, string $a_style) |
activate system style More... | |
static | getSystemStyleCategoryAssignments (string $a_skin_id, string $a_style_id) |
Get all system sub styles category assignments. More... | |
static | getSubStyleCategoryAssignments (string $a_skin_id, string $a_style_id, string $a_sub_style_id) |
Get all system category assignments of exactly one substyle. More... | |
static | writeSystemStyleCategoryAssignment (string $a_skin_id, string $a_style_id, string $a_substyle, string $a_ref_id) |
Sets a substyle category assignment. More... | |
static | deleteSystemStyleCategoryAssignment (string $a_skin_id, string $a_style_id, string $a_substyle, string $a_ref_id) |
Deletes all sub style category assignment of a system style. More... | |
static | deleteSubStyleCategoryAssignments (string $a_skin_id, string $a_style_id, string $a_substyle) |
Delets a sub styles category assignment. More... | |
static | updateSkinIdAndStyleIDOfSubStyleCategoryAssignments (string $old_skin_id, string $old_style_id, string $new_skin_id, string $new_style_id) |
Updates an assignment, e.g. More... | |
static | updateSubStyleIdfSubStyleCategoryAssignments (string $old_substyle_id, string $new_substyle_id) |
Updates an assignment, e.g. More... | |
static | setCurrentUserPrefStyle (string $skin_id, string $style_id) |
Sets a users preferred system skin/style by using the user object. More... | |
static | getCurrentUserPrefSkin () |
Gets a users preferred skin by using the user object. More... | |
static | getCurrentUserPrefStyle () |
Gets a users preferred style by using the user object. More... | |
static | setCurrentDefaultStyle (string $skin_id, string $style_id) |
Sets the default style of the system. More... | |
static | resetDefaultToDelos () |
static | getCurrentDefaultSkin () |
Gets default Skin of the System. More... | |
static | getCurrentDefaultStyle () |
Gets default style of the system. More... | |
This class acts as Model for all system styles settings related settings such as activated or default system styles etc, be it in database or inifile.
Do not use this class to get the current system style, use ilStyleDefinition insteaed. Semantics of terms style, sub style, skin, template –> see ilStyleDefinition
Definition at line 27 of file class.ilSystemStyleSettings.php.
|
static |
activate system style
Definition at line 69 of file class.ilSystemStyleSettings.php.
Referenced by _deactivateStyle(), ilSystemStyleConfigGUI\handleStyleActivation(), and ilSystemStyleOverviewGUI\saveStyleSettings().
|
static |
deactivate system style
Definition at line 53 of file class.ilSystemStyleSettings.php.
References $DIC, $q, and _activateStyle().
Referenced by ilSystemStyleConfigGUI\handleStyleActivation(), and ilSystemStyleOverviewGUI\saveStyleSettings().
|
static |
lookup if a style is activated
Definition at line 32 of file class.ilSystemStyleSettings.php.
Referenced by ilSystemStyleConfigGUI\editSystemStyleForm(), ilSystemStylesTableGUI\fillRow(), ilObjUserGUI\initForm(), and ilPersonalSettingsGUI\initGeneralSettingsForm().
|
static |
Delets a sub styles category assignment.
Definition at line 185 of file class.ilSystemStyleSettings.php.
References $DIC.
|
static |
Deletes all sub style category assignment of a system style.
This is used if a system style is deleted completely
Definition at line 167 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSubStyleAssignmentGUI\deleteAssignments().
|
static |
Gets default Skin of the System.
Definition at line 283 of file class.ilSystemStyleSettings.php.
References $DIC, and ilStyleDefinition\skinExists().
Referenced by ilSystemStyleConfigGUI\editSystemStyleForm(), ilSystemStylesTableGUI\fillRow(), and ilSystemStyleConfigGUI\handleStyleActivation().
|
static |
Gets default style of the system.
ilSystemStyleException |
Definition at line 300 of file class.ilSystemStyleSettings.php.
References $DIC, and ilStyleDefinition\styleExistsForSkinId().
Referenced by ilSystemStyleConfigGUI\editSystemStyleForm(), ilSystemStylesTableGUI\fillRow(), and ilSystemStyleConfigGUI\handleStyleActivation().
|
static |
Gets a users preferred skin by using the user object.
Definition at line 242 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleConfigGUI\handleStyleActivation().
|
static |
Gets a users preferred style by using the user object.
Definition at line 252 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleConfigGUI\handleStyleActivation().
|
static |
Get all system category assignments of exactly one substyle.
This is used to check wheter a system sub style is to be used in a particular category.
Definition at line 108 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStylesTableGUI\fillRow(), and ilSysStyleCatAssignmentTableGUI\getStyleCatAssignments().
|
static |
Get all system sub styles category assignments.
This is used to check wheter a system sub style is to be used in a particular category.
Definition at line 85 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilStyleDefinition\getCurrentStyle().
|
static |
Definition at line 272 of file class.ilSystemStyleSettings.php.
|
static |
Sets the default style of the system.
Definition at line 262 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleConfigGUI\handleStyleActivation(), and ilSystemStyleOverviewGUI\saveStyleSettings().
|
static |
Sets a users preferred system skin/style by using the user object.
Definition at line 230 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleConfigGUI\handleStyleActivation().
|
static |
Updates an assignment, e.g.
in case of ID Change through GUI.
Definition at line 198 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleConfigGUI\save().
|
static |
Updates an assignment, e.g.
in case of ID Change through GUI.
Definition at line 216 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleConfigGUI\save().
|
static |
Sets a substyle category assignment.
ilSystemStyleException |
Definition at line 136 of file class.ilSystemStyleSettings.php.
References $DIC, and ilSystemStyleException\SUBSTYLE_ASSIGNMENT_EXISTS.
Referenced by ilSubStyleAssignmentGUI\saveAssignment().