19 declare(strict_types=1);
68 $this->
toolbar->addComponent($this->ui_factory->button()->standard(
69 $this->
lng->txt(
'sty_add_assignment'),
70 $this->
ctrl->getLinkTarget($this->parent_gui,
'addAssignment')
81 $this->tpl->setContent($tab->getHTML());
89 include_once
'Services/Search/classes/class.ilSearchRootSelector.php';
91 $this->
ctrl->getLinkTarget($this->getParentGui(),
'addStyleCatAssignment')
93 $expand_id = $this->tree->readRootId();
94 if ($this->request_wrapper->query()->has(
'search_root_expand')) {
95 $expand_id = $this->request_wrapper->query()->retrieve(
97 $this->
refinery->kindlyTo()->string()
100 $exp->setExpand($expand_id);
101 $exp->setExpandTarget($this->
ctrl->getLinkTarget($this->getParentGui(),
'addAssignment'));
103 $exp->setCmd(
'saveAssignment');
104 $exp->setClickableTypes([
'cat']);
107 $this->tpl->setContent($exp->getOutput());
117 $root_id = $this->request_wrapper->query()->retrieve(
119 $this->
refinery->kindlyTo()->string()
129 $message = $this->
lng->txt(
'msg_assignment_failed') . $e->getMessage();
132 $this->message_stack->sendMessages();
143 if ($this->request_wrapper->post()->has(
'id')) {
144 $ids = $this->request_wrapper->post()->retrieve(
'id', $this->
refinery->identity());
145 foreach ($ids as
$id) {
146 $id_arr = explode(
':', $id);
157 $this->
lng->txt(
'no_style_selected'),
161 $this->message_stack->sendMessages();
assignStyle(ilSkin $skin, ilSkinStyle $substyle)
Assign styles to categories.
static writeSystemStyleCategoryAssignment(string $a_skin_id, string $a_style_id, string $a_substyle, string $a_ref_id)
Sets a substyle category assignment.
Class ChatMainBarProvider .
WrapperFactory $request_wrapper
__construct(ilSystemStyleSettingsGUI $parent_gui, ilCtrl $ctrl, ilLanguage $lng, ilGlobalTemplateInterface $tpl, ilToolbarGUI $toolbar, ilTree $tree, WrapperFactory $request_wrapper, Refinery $refinery, \ILIAS\UI\Factory $ui_factory)
saveAssignment(ilSkin $skin, ilSkinStyle $substyle)
Save style category assignment.
ilSystemStyleMessageStack $message_stack
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.
TableGUI class for system style to category assignments.
ilSystemStyleSettingsGUI $parent_gui
addAssignment()
Add style category assignment.
ilGlobalTemplateInterface $tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setParentGui(ilSystemStyleSettingsGUI $parent_gui)
Used to stack messages to be shown to the user.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
deleteAssignments(ilSkin $skin, ilSkinStyle $substyle)
Delete system style to category assignments.
getSubstyleOf()
Returns the parent style of this style if set.
ILIAS UI Factory $ui_factory
ilSkin holds an manages the basic data of a skin as provide by the template of the skin...