199 $old_skin = clone $container->getSkin();
200 $old_style = clone $old_skin->getStyle(
$_GET[
"style_id"]);
202 $new_skin = $container->getSkin();
203 $new_skin->setId(
$_POST[
"skin_id"]);
204 $new_skin->setName(
$_POST[
"skin_name"]);
205 $new_skin->getVersionStep(
$_POST[
'skin_version']);
207 $new_style = $new_skin->getStyle(
$_GET[
"style_id"]);
208 $new_style->setId(
$_POST[
"style_id"]);
209 $new_style->setName(
$_POST[
"style_name"]);
210 $new_style->setCssFile(
$_POST[
"style_id"]);
211 $new_style->setImageDirectory(
$_POST[
"image_dir"]);
212 $new_style->setSoundDirectory(
$_POST[
"sound_dir"]);
213 $new_style->setFontDirectory(
$_POST[
"font_dir"]);
215 $container->updateSkin($old_skin);
216 $container->updateStyle($new_style->getId(),$old_style);
219 if(
$_POST[
"active"] == 1){
221 if(
$_POST[
"personal"]==1){
230 $_POST[
"default"] = 0;
236 if(!
$_POST[
"personal"] && $DIC->user()->getPref(
"skin") == $new_skin->getId()){
244 $system_style_conf->getDefaultSkinId(),$system_style_conf->getDefaultStyleId()
254 $system_style_conf->getDefaultSkinId(),$system_style_conf->getDefaultStyleId()
257 $this->lng->txt(
"default_style_set_to").
" ".$system_style_conf->getDefaultSkinId().
": ".$system_style_conf->getDefaultStyleId(),
261 $this->ctrl->setParameterByClass(
'ilSystemStyleSettingsGUI',
'skin_id',$new_skin->getId());
262 $this->ctrl->setParameterByClass(
'ilSystemStyleSettingsGUI',
'style_id',$new_style->getId());
static _deactivateStyle($a_skin, $a_style)
deactivate system style
static getCurrentUserPrefSkin()
Gets a users preferred skin by using the user object.
static getCurrentDefaultSkin()
Gets default Skin of the System.
static setCurrentDefaultStyle($skin_id, $style_id)
Sets the default style of the system.
static getCurrentUserPrefStyle()
Gets a users preferred style by using the user object.
addMessage(ilSystemStyleMessage $message)
Add a message to be displayed by the stack.
static setCurrentUserPrefStyle($skin_id, $style_id)
Sets a users preferred system skin/style by using the user object.
static generateFromId($skin_id, ilSystemStyleMessageStack $message_stack=null, ilSystemStyleConfig $system_styles_conf=null)
Generate the container class by parsing the corresponding XML.
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
static _activateStyle($a_skin, $a_style)
activate system style
static getCurrentDefaultStyle()
Gets default style of the system.