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"];
74 $this->toolbar->addFormButton($this->lng->txt(
"sty_add_assignment"),
"addAssignment");
75 $this->toolbar->setFormAction($this->ctrl->getFormAction($this->getParentGui()));
85 $this->tpl->setContent(
$tab->getHTML());
94 include_once
'Services/Search/classes/class.ilSearchRootSelector.php';
96 $this->ctrl->getLinkTarget($this->getParentGui(),
'addStyleCatAssignment')
98 $exp->setExpand(
$_GET[
"search_root_expand"] ?
$_GET[
"search_root_expand"] : $this->tree->readRootId());
99 $exp->setExpandTarget($this->ctrl->getLinkTarget($this->getParentGui(),
'addAssignment'));
101 $exp->setCmd(
'saveAssignment');
102 $exp->setClickableTypes([
"cat"]);
105 $this->tpl->setContent($exp->getOutput());
131 $this->ctrl->redirect($this->
getParentGui(),
"assignStyle");
145 if (is_array(
$_POST[
"id"])) {
147 $id_arr = explode(
":", $id);
160 $this->ctrl->redirect($this->
getParentGui(),
"assignStyle");
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static writeSystemStyleCategoryAssignment( $a_skin_id, $a_style_id, $a_substyle, $a_ref_id)
Sets a substyle category assignment.
static deleteSystemStyleCategoryAssignment( $a_skin_id, $a_style_id, $a_substyle, $a_ref_id)
Deletes all sub style category assignment of a system style.
getSubstyleOf()
Returns the parent style of this style if set.
if(!array_key_exists('StateId', $_REQUEST)) $id
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.
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.