2 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
3 include_once(
"Services/Style/System/classes/Utilities/class.ilSkinXML.php");
4 include_once(
"Services/Style/System/classes/Utilities/class.ilSystemStyleSkinContainer.php");
5 include_once(
"Services/Style/System/classes/class.ilStyleDefinition.php");
6 include_once(
"Services/Style/System/classes/class.ilSystemStyleSettings.php");
7 include_once(
"Services/Style/System/classes/Exceptions/class.ilSystemStyleException.php");
8 include_once(
"Services/Style/System/classes/Utilities/class.ilSystemStyleMessageStack.php");
9 include_once(
"Services/Style/System/classes/Utilities/class.ilSystemStyleMessage.php");
10 include_once(
"Services/Style/System/classes/Settings/class.ilSysStyleCatAssignmentTableGUI.php");
57 $this->ctrl = $DIC->ctrl();
58 $this->lng = $DIC->language();
59 $this->toolbar = $DIC->toolbar();
60 $this->tpl = $DIC[
"tpl"];
62 $this->tree = $DIC[
"tree"];
75 $this->toolbar->addFormButton($this->lng->txt(
"sty_add_assignment"),
"addAssignment");
76 $this->toolbar->setFormAction($this->ctrl->getFormAction($this->getParentGui()));
81 $this->tpl->setContent(
$tab->getHTML());
91 include_once
'Services/Search/classes/class.ilSearchRootSelector.php';
93 $this->ctrl->getLinkTarget($this->getParentGui(),
'addStyleCatAssignment'));
94 $exp->setExpand(
$_GET[
"search_root_expand"] ?
$_GET[
"search_root_expand"] : $this->tree->readRootId());
95 $exp->setExpandTarget($this->ctrl->getLinkTarget($this->getParentGui(),
'addAssignment'));
97 $exp->setCmd(
'saveAssignment');
98 $exp->setClickableTypes([
"cat"]);
101 $this->tpl->setContent($exp->getOutput());
124 $this->ctrl->redirect($this->
getParentGui(),
"assignStyle");
138 if (is_array(
$_POST[
"id"]))
140 foreach (
$_POST[
"id"] as $id)
142 $id_arr = explode(
":", $id);
144 $substyle->
getId(), $id_arr[1]);
151 $this->ctrl->redirect($this->
getParentGui(),
"assignStyle");
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
getSubstyleOf()
Returns the parent style of this style if set.
ilSkinXml holds an manages the basic data of a skin as provide by the template of the skin...
TableGUI class for system style to category assignments.
static deleteSystemStyleCategoryAssignment($a_skin_id, $a_style_id, $a_substyle, $a_ref_id)
Deletes all sub style category assignment of a system style.
addAssignment()
Add style category assignment.
setParentGui($parent_gui)
deleteAssignments(ilSkinXML $skin, ilSkinStyleXML $substyle)
Delete system style to category assignments.
Class for advanced editing exception handling in ILIAS.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
saveAssignment(ilSkinXML $skin, ilSkinStyleXML $substyle)
Save style category assignment.
__construct(ilSystemStyleSettingsGUI $parent_gui)
Constructor.
assignStyle(ilSkinXML $skin, ilSkinStyleXML $substyle)
Assign styles to categories.
static writeSystemStyleCategoryAssignment($a_skin_id, $a_style_id, $a_substyle, $a_ref_id)
Sets a substyle category assignment.