ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 ($a_skin, $a_style) |
lookup if a style is activated More... | |
static | _deactivateStyle ($a_skin, $a_style) |
deactivate system style More... | |
static | _activateStyle ($a_skin, $a_style) |
activate system style More... | |
static | getSystemStyleCategoryAssignments ($a_skin_id, $a_style_id) |
Get all system sub styles category assignments. More... | |
static | getSubStyleCategoryAssignments ($a_skin_id, $a_style_id, $a_sub_style_id) |
Get all system category assignments of exactly one substyle. More... | |
static | writeSystemStyleCategoryAssignment ( $a_skin_id, $a_style_id, $a_substyle, $a_ref_id) |
Sets a substyle category assignment. More... | |
static | deleteSystemStyleCategoryAssignment ( $a_skin_id, $a_style_id, $a_substyle, $a_ref_id) |
Deletes all sub style category assignment of a system style. More... | |
static | deleteSubStyleCategoryAssignments ($a_skin_id, $a_style_id, $a_substyle) |
Delets a sub styles category assignment. More... | |
static | setCurrentUserPrefStyle ($skin_id, $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 ($skin_id, $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 19 of file class.ilSystemStyleSettings.php.
|
static |
activate system style
$a_skin | |
$a_style |
Definition at line 71 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by _deactivateStyle(), ilSystemStyleSettingsGUI\saveStyle(), and ilSystemStyleOverviewGUI\saveStyleSettings().
|
static |
deactivate system style
$a_skin | |
$a_style |
Definition at line 52 of file class.ilSystemStyleSettings.php.
References $DIC, and _activateStyle().
Referenced by ilSystemStyleSettingsGUI\saveStyle(), and ilSystemStyleOverviewGUI\saveStyleSettings().
|
static |
lookup if a style is activated
$a_skin | |
$a_style |
Definition at line 28 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilUserImportParser\__construct(), ilSystemStyleOverviewGUI\checkDeletable(), ilSystemStylesTableGUI\fillRow(), ilSystemStyleSettingsGUI\getPropertiesValues(), ilObjUserGUI\getValues(), and ilPersonalSettingsGUI\initGeneralSettingsForm().
|
static |
Delets a sub styles category assignment.
$a_skin_id | |
$a_style_id | |
$a_substyle |
Definition at line 203 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleSkinContainer\deleteStyle().
|
static |
Deletes all sub style category assignment of a system style.
This is used if a system style is deleted completely
$a_skin_id | |
$a_style_id | |
$a_substyle | |
$a_ref_id |
Definition at line 181 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSubStyleAssignmentGUI\deleteAssignments().
|
static |
Gets default Skin of the System.
Definition at line 280 of file class.ilSystemStyleSettings.php.
References $DIC, and ilStyleDefinition\skinExists().
Referenced by ilSystemStyleOverviewGUI\checkDeletable(), ilSystemStylesTableGUI\fillRow(), ilSystemStyleSettingsGUI\getPropertiesValues(), and ilSystemStyleSettingsGUI\saveStyle().
|
static |
Gets default style of the system.
ilSystemStyleException |
Definition at line 299 of file class.ilSystemStyleSettings.php.
References $DIC, and ilStyleDefinition\styleExistsForSkinId().
Referenced by ilSystemStylesTableGUI\fillRow(), ilSystemStyleSettingsGUI\getPropertiesValues(), and ilSystemStyleSettingsGUI\saveStyle().
|
static |
Gets a users preferred skin by using the user object.
Definition at line 233 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleSettingsGUI\saveStyle().
|
static |
Gets a users preferred style by using the user object.
Definition at line 245 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleSettingsGUI\saveStyle().
|
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.
$a_skin_id | |
$a_style_id | |
$a_sub_style_id |
Definition at line 118 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.
string | $a_skin_id | skin id |
string | $a_style_id | style id |
Definition at line 90 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilStyleDefinition\getCurrentStyle().
|
static |
Definition at line 268 of file class.ilSystemStyleSettings.php.
|
static |
Sets the default style of the system.
$skin_id | |
$style_id |
Definition at line 258 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleSettingsGUI\saveStyle(), and ilSystemStyleOverviewGUI\saveStyleSettings().
|
static |
Sets a users preferred system skin/style by using the user object.
$skin_id | |
$style_id |
Definition at line 219 of file class.ilSystemStyleSettings.php.
References $DIC.
Referenced by ilSystemStyleSettingsGUI\saveStyle().
|
static |
Sets a substyle category assignment.
$a_skin_id | |
$a_style_id | |
$a_substyle | |
$a_ref_id |
ilSystemStyleException |
Definition at line 148 of file class.ilSystemStyleSettings.php.
References $DIC, and ilSystemStyleException\SUBSTYLE_ASSIGNMENT_EXISTS.
Referenced by ilSubStyleAssignmentGUI\saveAssignment().