109 $lng = $this->domain->lng();
110 $user = $this->domain->user();
111 $transl = $this->gui->editing()->request()->getTranslation();
114 ->textColumn(
"title",
$lng->txt(
"title"));
115 if (!in_array($transl, [
"-",
""])) {
117 " (" .
$lng->txt(
"meta_l_" . $transl) .
")");
119 if ($this->type ===
"st") {
124 [\ilObjLearningModuleGUI::class, \ilStructureObjectGUI::class, EditSubObjectsGUI::class],
129 "insertChapterAfter",
130 $lng->txt(
"lm_insert_chapter_after"),
131 [EditSubObjectsGUI::class],
132 "insertChapterAfter",
136 "insertChapterBefore",
137 $lng->txt(
"lm_insert_chapter_before"),
138 [EditSubObjectsGUI::class],
139 "insertChapterBefore",
143 if ($user->clipboardHasObjectsOfType(
"st")) {
145 "insertChapterClipAfter",
146 $lng->txt(
"lm_insert_chapter_clip_after"),
147 [EditSubObjectsGUI::class],
148 "insertChapterClipAfter",
152 "insertChapterClipBefore",
153 $lng->txt(
"lm_insert_chapter_clip_before"),
154 [EditSubObjectsGUI::class],
155 "insertChapterClipBefore",
164 [\ilObjLearningModuleGUI::class, \ilLMPageObjectGUI::class],
170 $lng->txt(
"lm_insert_page_after"),
171 [EditSubObjectsGUI::class],
177 $lng->txt(
"lm_insert_page_before"),
178 [EditSubObjectsGUI::class],
183 if ($user->clipboardHasObjectsOfType(
"pg")) {
185 "insertPageClipAfter",
186 $lng->txt(
"lm_insert_page_clip_after"),
187 [EditSubObjectsGUI::class],
188 "insertPageClipAfter",
192 "insertPageClipBefore",
193 $lng->txt(
"lm_insert_page_clip_before"),
194 [EditSubObjectsGUI::class],
195 "insertPageClipBefore",
199 if (count($this->page_layouts) > 0) {
202 $lng->txt(
"lm_insert_layout_after"),
203 [EditSubObjectsGUI::class],
208 "insertLayoutBefore",
209 $lng->txt(
"lm_insert_layout_before"),
210 [EditSubObjectsGUI::class],
211 "insertLayoutBefore",
216 foreach ($acts as
$a) {
232 $lng->txt(
"cont_edit_title"),
243 if ($this->type ===
"pg") {
246 $lng->txt(
"cont_de_activate")
singleRedirectAction(string $action, string $title, array $class_path, string $cmd="", string $id_param="")
textColumn(string $key, string $title, bool $sortable=false)
iconColumn(string $key, string $title, bool $sortable=false)
standardAction(string $action, string $title)
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples