19declare(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());
90 $this->
ctrl->getLinkTarget($this->getParentGui(),
'addStyleCatAssignment')
92 $expand_id = $this->tree->readRootId();
93 if ($this->request_wrapper->query()->has(
'search_root_expand')) {
94 $expand_id = $this->request_wrapper->query()->retrieve(
96 $this->
refinery->kindlyTo()->string()
99 $exp->setExpand($expand_id);
100 $exp->setExpandTarget($this->
ctrl->getLinkTarget($this->getParentGui(),
'addAssignment'));
102 $exp->setCmd(
'saveAssignment');
103 $exp->setClickableTypes([
'cat']);
106 $this->tpl->setContent($exp->getOutput());
116 $root_id = $this->request_wrapper->query()->retrieve(
118 $this->
refinery->kindlyTo()->string()
128 $message = $this->
lng->txt(
'msg_assignment_failed') . $e->getMessage();
131 $this->message_stack->sendMessages();
142 if ($this->request_wrapper->post()->has(
'id')) {
143 $ids = $this->request_wrapper->post()->retrieve(
'id', $this->
refinery->identity());
144 foreach ($ids as
$id) {
145 $id_arr = explode(
':',
$id);
156 $this->
lng->txt(
'no_style_selected'),
160 $this->message_stack->sendMessages();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class ilCtrl provides processing control methods.
getSubstyleOf()
Returns the parent style of this style if set.
ilSkin holds an manages the basic data of a skin as provide by the template of the skin.
ilSystemStyleMessageStack $message_stack
__construct(ilSystemStyleConfigGUI $parent_gui, ilCtrl $ctrl, ilLanguage $lng, ilGlobalTemplateInterface $tpl, ilToolbarGUI $toolbar, ilTree $tree, WrapperFactory $request_wrapper, Refinery $refinery, \ILIAS\UI\Factory $ui_factory)
WrapperFactory $request_wrapper
saveAssignment(ilSkin $skin, ilSkinStyle $substyle)
Save style category assignment.
setParentGui(ilSystemStyleConfigGUI $parent_gui)
ILIAS UI Factory $ui_factory
addAssignment()
Add style category assignment.
deleteAssignments(ilSkin $skin, ilSkinStyle $substyle)
Delete system style to category assignments.
ilSystemStyleConfigGUI $parent_gui
ilGlobalTemplateInterface $tpl
assignStyle(ilSkin $skin, ilSkinStyle $substyle)
Assign styles to categories.
TableGUI class for system style to category assignments.
Class for advanced editing exception handling in ILIAS.
Used to stack messages to be shown to the user.
static writeSystemStyleCategoryAssignment(string $a_skin_id, string $a_style_id, string $a_substyle, string $a_ref_id)
Sets a substyle category assignment.
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.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.