19 declare(strict_types=1);
40 ?array $passed_query_params =
null,
41 ?array $passed_post_data =
null 45 $this->domain->refinery(),
71 $lng = $this->domain->lng();
72 $user = $this->domain->user();
73 $transl = $this->
request()->getTranslation();
74 $table = new \ILIAS\LearningModule\Table\TableAdapterGUI(
77 $this->domain->subObjectRetrieval(
80 $this->request()->getObjId(),
86 ->ordering(
"saveOrder")
87 ->iconColumn(
"type",
$lng->txt(
"type"))
88 ->textColumn(
"title",
$lng->txt(
"title"));
89 if (!in_array($transl, [
"-",
""])) {
90 $table = $table->textColumn(
"trans_title",
$lng->txt(
"title") .
91 " (" .
$lng->txt(
"meta_l_" . $transl) .
")");
99 [\ilObjLearningModuleGUI::class, \ilStructureObjectGUI::class, EditSubObjectsGUI::class],
104 "insertChapterAfter",
105 $lng->txt(
"lm_insert_chapter_after"),
106 [EditSubObjectsGUI::class],
107 "insertChapterAfter",
111 "insertChapterBefore",
112 $lng->txt(
"lm_insert_chapter_before"),
113 [EditSubObjectsGUI::class],
114 "insertChapterBefore",
118 if ($user->clipboardHasObjectsOfType(
"st")) {
120 "insertChapterClipAfter",
121 $lng->txt(
"lm_insert_chapter_clip_after"),
122 [EditSubObjectsGUI::class],
123 "insertChapterClipAfter",
127 "insertChapterClipBefore",
128 $lng->txt(
"lm_insert_chapter_clip_before"),
129 [EditSubObjectsGUI::class],
130 "insertChapterClipBefore",
139 [\ilObjLearningModuleGUI::class, \ilLMPageObjectGUI::class],
145 $lng->txt(
"lm_insert_page_after"),
146 [EditSubObjectsGUI::class],
152 $lng->txt(
"lm_insert_page_before"),
153 [EditSubObjectsGUI::class],
158 if ($user->clipboardHasObjectsOfType(
"pg")) {
160 "insertPageClipAfter",
161 $lng->txt(
"lm_insert_page_clip_after"),
162 [EditSubObjectsGUI::class],
163 "insertPageClipAfter",
167 "insertPageClipBefore",
168 $lng->txt(
"lm_insert_page_clip_before"),
169 [EditSubObjectsGUI::class],
170 "insertPageClipBefore",
174 if (count($this->page_layouts) > 0) {
177 $lng->txt(
"lm_insert_layout_after"),
178 [EditSubObjectsGUI::class],
183 "insertLayoutBefore",
184 $lng->txt(
"lm_insert_layout_before"),
185 [EditSubObjectsGUI::class],
186 "insertLayoutBefore",
191 foreach ($acts as
$a) {
192 $table = $table->singleAction($a[0], $a[1])
193 ->redirect($a[2], $a[3], $a[4]);
202 $lng->txt(
"cont_edit_title"),
213 if ($type ===
"pg") {
214 $table = $table->standardAction(
216 $lng->txt(
"cont_de_activate")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer Contains several chained tasks and infos about them.
subObjectTableGUI(string $title, int $lm_id, string $type, object $parent_gui)
editSubObjectsGUI(string $sub_type, \ilObjLearningModule $lm, string $table_title)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static activeLayouts(int $a_module=0)
Get active layouts.
__construct(protected InternalDomainService $domain, protected InternalGUIService $gui)
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
request(?array $passed_query_params=null, ?array $passed_post_data=null)