ILIAS  release_8 Revision v8.24
class.ilBasicSkillGUI.php
Go to the documentation of this file.
1<?php
2
23use Psr\Http\Message\ServerRequestInterface;
25
33{
34 protected ilCtrl $ctrl;
36 protected ilTabsGUI $tabs;
37 protected ilHelpGUI $help;
39 protected ilLanguage $lng;
40 protected Factory $ui_fac;
41 protected Renderer $ui_ren;
42 protected ServerRequestInterface $request;
43
44 protected int $tref_id = 0;
45 protected int $requested_level_id = 0;
46 protected int $requested_root_id = 0;
47
51 protected array $requested_level_order = [];
52
56 protected array $requested_level_ids = [];
57
61 protected array $requested_resource_ids = [];
62
66 protected array $requested_suggested = [];
67
71 protected array $requested_trigger = [];
72
73 public function __construct(Tree\SkillTreeNodeManager $node_manager, int $a_node_id = 0)
74 {
75 global $DIC;
76
77 $this->ctrl = $DIC->ctrl();
78 $this->tpl = $DIC["tpl"];
79 $this->tabs = $DIC->tabs();
80 $this->help = $DIC["ilHelp"];
81 $this->toolbar = $DIC->toolbar();
82 $this->lng = $DIC->language();
83 $this->ui_fac = $DIC->ui()->factory();
84 $this->ui_ren = $DIC->ui()->renderer();
85 $this->request = $DIC->http()->request();
86 $ilCtrl = $DIC->ctrl();
87
88 $ilCtrl->saveParameter($this, array("node_id", "level_id"));
89 $this->base_skill_id = $a_node_id;
90
91 parent::__construct($node_manager, $a_node_id);
92
93 $this->requested_level_id = $this->admin_gui_request->getLevelId();
94 $this->requested_root_id = $this->admin_gui_request->getRootId();
95 $this->requested_level_order = $this->admin_gui_request->getOrder();
96 $this->requested_level_ids = $this->admin_gui_request->getLevelIds();
97 $this->requested_resource_ids = $this->admin_gui_request->getResourceIds();
98 $this->requested_suggested = $this->admin_gui_request->getSuggested();
99 $this->requested_trigger = $this->admin_gui_request->getTrigger();
100 }
101
102 public function getType(): string
103 {
104 return "skll";
105 }
106
107 public function executeCommand(): void
108 {
109 $ilCtrl = $this->ctrl;
110 $ilTabs = $this->tabs;
112
113 //$tpl->getStandardTemplate();
114
115 $next_class = $ilCtrl->getNextClass($this);
116 $cmd = $ilCtrl->getCmd();
117 switch ($next_class) {
118 default:
119 $ret = $this->$cmd();
120 break;
121 }
122 }
123
124 public function showProperties(): void
125 {
127
128 $this->setTabs();
129
130 $tpl->setContent("Properties");
131 }
132
133 public function saveItem(): void
134 {
135 if (!$this->tree_access_manager->hasManageCompetencesPermission()) {
136 return;
137 }
138
139 $it = new ilBasicSkill();
140 $it->setTitle($this->form->getInput("title"));
141 $it->setDescription($this->form->getInput("description"));
142 $it->setStatus($this->form->getInput("status"));
143 $it->setSelfEvaluation((bool) $this->form->getInput("self_eval"));
144 $it->create();
145 $this->skill_tree_node_manager->putIntoTree($it, $this->requested_node_id, ilTree::POS_LAST_NODE);
146 $this->node_object = $it;
147 }
148
149 public function afterSave(): void
150 {
151 $ilCtrl = $this->ctrl;
152
153 $ilCtrl->setParameterByClass(
154 "ilbasicskillgui",
155 "node_id",
156 $this->node_object->getId()
157 );
158 $ilCtrl->redirectByClass("ilbasicskillgui", "edit");
159 }
160
161 public function updateItem(): void
162 {
163 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
164 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
165 return;
166 }
167
168 $this->node_object->setTitle($this->form->getInput("title"));
169 $this->node_object->setDescription($this->form->getInput("description"));
170 $this->node_object->setSelfEvaluation((bool) $this->form->getInput("self_eval"));
171 $this->node_object->setStatus($this->form->getInput("status"));
172 $this->node_object->update();
173 }
174
175 public function edit(): void
176 {
178 $ilToolbar = $this->toolbar;
180 $ilCtrl = $this->ctrl;
181
182 $this->setTabs("levels");
183
184 if ($this->isInUse()) {
185 $this->tpl->setOnScreenMessage('info', $lng->txt("skmg_skill_in_use"));
186 } elseif ($this->tree_access_manager->hasManageCompetencesPermission()) {
187 $ilToolbar->addButton(
188 $lng->txt("skmg_add_level"),
189 $ilCtrl->getLinkTarget($this, "addLevel")
190 );
191 }
192
193 $table = new ilSkillLevelTableGUI(
194 $this->base_skill_id,
195 $this,
196 "edit",
197 0,
198 $this->isInUse(),
199 $this->tree_access_manager->hasManageCompetencesPermission()
200 );
201 $tpl->setContent($table->getHTML());
202 }
203
204 public function initForm(string $a_mode = "edit"): void
205 {
207 $ilCtrl = $this->ctrl;
208
209 $this->form = new ilPropertyFormGUI();
210
211 // title
212 $ti = new ilTextInputGUI($lng->txt("title"), "title");
213 $ti->setMaxLength(200);
214 $ti->setSize(50);
215 $ti->setRequired(true);
216 $this->form->addItem($ti);
217
218 // description
219 $ta = new ilTextAreaInputGUI($lng->txt("description"), "description");
220 $ta->setRows(5);
221 $this->form->addItem($ta);
222
223 // status
224 $this->addStatusInput($this->form);
225
226 // selectable
227 $cb = new ilCheckboxInputGUI($lng->txt("skmg_selectable"), "self_eval");
228 $cb->setInfo($lng->txt("skmg_selectable_info"));
229 $this->form->addItem($cb);
230
231 // save and cancel commands
232 if ($this->tree_access_manager->hasManageCompetencesPermission()) {
233 if ($a_mode == "create") {
234 $this->form->addCommandButton("save", $lng->txt("save"));
235 $this->form->addCommandButton("cancelSave", $lng->txt("cancel"));
236 $this->form->setTitle($lng->txt("skmg_create_skll"));
237 } else {
238 $this->form->addCommandButton("update", $lng->txt("save"));
239 $this->form->setTitle($lng->txt("skmg_edit_skll"));
240 }
241 } else {
242 foreach ($this->form->getItems() as $item) {
243 $item->setDisabled(true);
244 }
245 }
246
247 $ilCtrl->setParameter($this, "node_id", $this->requested_node_id);
248 $this->form->setFormAction($ilCtrl->getFormAction($this));
249 }
250
251 public function editProperties(): void
252 {
253 $this->setTabs("properties");
254 parent::editProperties();
255 }
256
257
258 //
259 //
260 // Skill level related methods
261 //
262 //
263
264 public function addLevel(): void
265 {
267
268 $form = $this->initLevelForm("create");
269 $tpl->setContent($this->ui_ren->render([$form]));
270 }
271
272 public function editLevel(): void
273 {
276
277 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
278 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
279 return;
280 }
281
282 if ($this->isInUse()) {
283 $this->tpl->setOnScreenMessage('info', $lng->txt("skmg_skill_in_use"));
284 }
285
286 $form = $this->initLevelForm();
287 $tpl->setContent($this->ui_ren->render([$form]));
288 }
289
290 public function saveLevel(): void
291 {
294 $ilCtrl = $this->ctrl;
295
296 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
297 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
298 return;
299 }
300
301 $form = $this->initLevelForm("create");
302 if ($this->request->getMethod() == "POST"
303 && $this->request->getQueryParams()["level_settings"] == "level_settings_config") {
304 $form = $form->withRequest($this->request);
305 $result = $form->getData();
306
307 if (is_null($result)) {
308 $tpl->setContent($this->ui_ren->render($form));
309 return;
310 }
311
312 $this->node_object->addLevel(
313 $result["section_level"]["input_ti"],
314 $result["section_level"]["input_desc"]
315 );
316
317 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
318 $ilCtrl->redirect($this, "edit");
319 }
320
321 $tpl->setContent($this->ui_ren->render([$form]));
322 }
323
324 public function updateLevel(): void
325 {
327 $ilCtrl = $this->ctrl;
329
330 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
331 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
332 return;
333 }
334
335 $form = $this->initLevelForm("edit");
336 if ($this->request->getMethod() == "POST"
337 && $this->request->getQueryParams()["level_settings"] == "level_settings_config") {
338 $form = $form->withRequest($this->request);
339 $result = $form->getData();
340
341 if (is_null($result)) {
342 $tpl->setContent($this->ui_ren->render($form));
343 return;
344 }
345
346 $this->node_object->writeLevelTitle(
347 $this->requested_level_id,
348 $result["section_level"]["input_ti"]
349 );
350
351 $this->node_object->writeLevelDescription(
352 $this->requested_level_id,
353 $result["section_level"]["input_desc"]
354 );
355
356 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
357 $ilCtrl->redirect($this, "edit");
358 }
359
360 $tpl->setContent($this->ui_ren->render([$form]));
361 }
362
363 public function initLevelForm(string $a_mode = "edit"): Form
364 {
366 $ilCtrl = $this->ctrl;
367 $ilTabs = $this->tabs;
368
369 $ilCtrl->saveParameter($this, "level_id");
370 $this->setLevelHead();
371 $ilTabs->activateTab("level_settings");
372
373 $input_ti = $this->ui_fac->input()->field()->text($lng->txt("title"))
374 ->withRequired(true);
375
376 $input_desc = $this->ui_fac->input()->field()->textarea($lng->txt("description"));
377
378 $ilCtrl->setParameter(
379 $this,
380 'level_settings',
381 'level_settings_config'
382 );
383
384 if ($a_mode == "create") {
385 $section_level = $this->ui_fac->input()->field()->section(
386 ["input_ti" => $input_ti,
387 "input_desc" => $input_desc],
388 $lng->txt("skmg_new_level")
389 );
390 $form_action = $ilCtrl->getFormAction($this, "saveLevel");
391 } else {
392 $data = $this->node_object->getLevelData($this->requested_level_id);
393 $input_ti = $input_ti->withValue($data["title"]);
394 $input_desc = $input_desc->withValue($data["description"]);
395
396 $section_level = $this->ui_fac->input()->field()->section(
397 ["input_ti" => $input_ti,
398 "input_desc" => $input_desc],
399 $lng->txt("skmg_edit_level")
400 );
401 $form_action = $ilCtrl->getFormAction($this, "updateLevel");
402 }
403
404 $form = $this->ui_fac->input()->container()->form()->standard(
405 $form_action,
406 ["section_level" => $section_level]
407 );
408
409 return $form;
410 }
411
412 public function updateLevelOrder(): void
413 {
415 $ilCtrl = $this->ctrl;
416
417 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
418 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
419 return;
420 }
421
422 $order = ilArrayUtil::stripSlashesArray($this->requested_level_order);
423 $this->node_object->updateLevelOrder($order);
424 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
425 $ilCtrl->redirect($this, "edit");
426 }
427
428 public function confirmLevelDeletion(): void
429 {
430 $ilCtrl = $this->ctrl;
433
434 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
435 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
436 return;
437 }
438
439 $this->setTabs("levels");
440
441 if (empty($this->requested_level_ids)) {
442 $this->tpl->setOnScreenMessage('info', $lng->txt("no_checkbox"), true);
443 $ilCtrl->redirect($this, "edit");
444 } else {
445 $cgui = new ilConfirmationGUI();
446 $cgui->setFormAction($ilCtrl->getFormAction($this));
447 $cgui->setHeaderText($lng->txt("skmg_really_delete_levels"));
448 $cgui->setCancel($lng->txt("cancel"), "edit");
449 $cgui->setConfirm($lng->txt("delete"), "deleteLevel");
450
451 foreach ($this->requested_level_ids as $i) {
452 $cgui->addItem("id[]", $i, ilBasicSkill::lookupLevelTitle($i));
453 }
454
455 $tpl->setContent($cgui->getHTML());
456 }
457 }
458
459 public function deleteLevel(): void
460 {
462 $ilCtrl = $this->ctrl;
463
464 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
465 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
466 return;
467 }
468
469 if (!empty($this->requested_level_ids)) {
470 foreach ($this->requested_level_ids as $id) {
471 $this->node_object->deleteLevel($id);
472 }
473 $this->node_object->fixLevelNumbering();
474 }
475 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
476 $ilCtrl->redirect($this, "edit");
477 }
478
479 public function setLevelHead(): void
480 {
481 $ilTabs = $this->tabs;
482 $ilCtrl = $this->ctrl;
485 $ilHelp = $this->help;
486
487 // tabs
488 $ilTabs->clearTargets();
489 $ilHelp->setScreenIdComponent("skmg_lev");
490
491 $ilTabs->setBackTarget(
492 $lng->txt("back"),
493 $ilCtrl->getLinkTarget($this, "edit")
494 );
495
496 if ($this->requested_level_id > 0) {
497 $ilTabs->addTab(
498 "level_settings",
499 $lng->txt("settings"),
500 $ilCtrl->getLinkTarget($this, "editLevel")
501 );
502
503 $ilTabs->addTab(
504 "level_resources",
505 $lng->txt("skmg_resources"),
506 $ilCtrl->getLinkTarget($this, "showLevelResources")
507 );
508 }
509
510 // title
511 if ($this->requested_level_id > 0) {
512 $tpl->setTitle($lng->txt("skmg_skill_level") . ": " .
513 ilBasicSkill::lookupLevelTitle($this->requested_level_id));
514 } else {
515 $tpl->setTitle($lng->txt("skmg_skill_level"));
516 }
517
518 $desc = $this->skill_tree_node_manager->getWrittenPath($this->node_object->getId());
519 $tpl->setDescription($desc);
520 }
521
522 public function setTabs(string $a_tab = "levels"): void
523 {
524 $ilTabs = $this->tabs;
525 $ilCtrl = $this->ctrl;
528 $ilHelp = $this->help;
529
530 $ilTabs->clearTargets();
531 $ilHelp->setScreenIdComponent("skmg_skll");
532 // $ilTabs->setBackTarget($lng->txt("skmg_skill_hierarchie"),
533 // $ilCtrl->getLinkTargetByClass("ilobjskillmanagementgui", "editSkills"));
534
535 if (is_object($this->node_object)) {
536
537 // levels
538 $ilTabs->addTab(
539 "levels",
540 $lng->txt("skmg_skill_levels"),
541 $ilCtrl->getLinkTarget($this, 'edit')
542 );
543
544 // properties
545 $ilTabs->addTab(
546 "properties",
547 $lng->txt("settings"),
548 $ilCtrl->getLinkTarget($this, 'editProperties')
549 );
550
551 // usage
552 $this->addUsageTab($ilTabs);
553
554 // assigned objects
555 $this->addObjectsTab($ilTabs);
556
557 $parent_node_id = $this->tree_repo->getParentNodeIdForNodeId($this->requested_node_id);
558 $parent_title = ilSkillTreeNode::_lookupTitle($parent_node_id);
559 $parent_type = ilSkillTreeNode::_lookupType($parent_node_id);
560
561 if ($parent_type === "scat") {
562 $ilCtrl->setParameterByClass(
563 "ilskillcategorygui",
564 "node_id",
565 $parent_node_id
566 );
567 $ilTabs->setBackTarget(
568 $parent_title,
569 $ilCtrl->getLinkTargetByClass("ilskillcategorygui", "listItems")
570 );
571 $ilCtrl->setParameterByClass(
572 "ilskillcategorygui",
573 "node_id",
574 ""
575 );
576 } else {
577 $ilCtrl->setParameterByClass(
578 "ilskillrootgui",
579 "node_id",
580 $this->skill_tree_node_manager->getRootId()
581 );
582 $ilTabs->setBackTarget(
583 $lng->txt("skmg_skills"),
584 $ilCtrl->getLinkTargetByClass("ilskillrootgui", "listSkills")
585 );
586 $ilCtrl->setParameterByClass(
587 "ilskillrootgui",
588 "node_id",
589 $this->requested_node_id
590 );
591 }
592
593 $ilTabs->activateTab($a_tab);
594
595 $tpl->setTitle($lng->txt("skmg_skill") . ": " .
596 $this->node_object->getTitle());
597
599 } else {
600 $tpl->setTitle($lng->txt("skmg_skill"));
601 $tpl->setDescription("");
602 }
603 parent::setTitleIcon();
604 }
605
609 public function redirectToParent(bool $a_tmp_mode = false): void
610 {
611 $ilCtrl = $this->ctrl;
612
613 $t = ilSkillTreeNode::_lookupType($this->requested_node_id);
614
615 switch ($t) {
616 case "skrt":
617 $ilCtrl->setParameterByClass("ilskillrootgui", "node_id", $this->requested_node_id);
618 $ilCtrl->redirectByClass("ilskillrootgui", "listSkills");
619 break;
620 }
621
622 parent::redirectToParent();
623 }
624
625
629
630 public function showLevelResources(): void
631 {
633 $ilTabs = $this->tabs;
634 $ilToolbar = $this->toolbar;
636 $ilCtrl = $this->ctrl;
637
638 if ($this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
639 || $this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
640 $ilToolbar->addButton(
641 $lng->txt("skmg_add_resource"),
642 $ilCtrl->getLinkTarget($this, "addLevelResource")
643 );
644 } else {
645 return;
646 }
647
648 $this->setLevelHead();
649 $ilTabs->activateTab("level_resources");
650
652 $this,
653 "showLevelResources",
654 $this->base_skill_id,
655 $this->tref_id,
656 $this->requested_level_id,
657 $this->tree_access_manager->hasManageCompetencesPermission()
658 );
659
660 $tpl->setContent($tab->getHTML());
661 }
662
663 public function addLevelResource(): void
664 {
665 $ilTabs = $this->tabs;
667
668 $this->setLevelHead();
669 $ilTabs->activateTab("level_resources");
670
672 $this,
673 "addLevelResource",
674 $this,
675 "saveLevelResource",
676 "root_id",
677 "",
678 "rep_node_id"
679 );
680 if (!$exp->handleCommand()) {
681 $tpl->setContent($exp->getHTML());
682 }
683 }
684
685 public function saveLevelResource(): void
686 {
687 $ilCtrl = $this->ctrl;
689
691 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
692 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
693 return;
694 }
695
696 if ($ref_id > 0) {
697 $sres = new ilSkillResources($this->base_skill_id, $this->tref_id);
698 $sres->setResourceAsImparting($this->requested_level_id, $ref_id);
699 $sres->setResourceAsTrigger($this->requested_level_id, $ref_id, false);
700 $sres->save();
701
702 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
703 }
704
705 $ilCtrl->redirect($this, "showLevelResources");
706 }
707
708 public function confirmLevelResourcesRemoval(): void
709 {
710 $ilCtrl = $this->ctrl;
713 $ilTabs = $this->tabs;
714
715 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
716 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
717 return;
718 }
719
720 $this->setLevelHead();
721 $ilTabs->activateTab("level_resources");
722
723 if (empty($this->requested_resource_ids)) {
724 $this->tpl->setOnScreenMessage('info', $lng->txt("no_checkbox"), true);
725 $ilCtrl->redirect($this, "showLevelResources");
726 } else {
727 $cgui = new ilConfirmationGUI();
728 $cgui->setFormAction($ilCtrl->getFormAction($this));
729 $cgui->setHeaderText($lng->txt("skmg_confirm_level_resources_removal"));
730 $cgui->setCancel($lng->txt("cancel"), "showLevelResources");
731 $cgui->setConfirm($lng->txt("remove"), "removeLevelResources");
732
733 foreach ($this->requested_resource_ids as $i) {
735 $cgui->addItem("id[]", $i, $title);
736 }
737
738 $tpl->setContent($cgui->getHTML());
739 }
740 }
741
742 public function removeLevelResources(): void
743 {
744 $ilCtrl = $this->ctrl;
746
747 if (!$this->tree_access_manager->hasManageCompetencesPermission() && $this->getType() == "skll"
748 || !$this->tree_access_manager->hasManageCompetenceTemplatesPermission() && $this->getType() == "sktp") {
749 return;
750 }
751
752 if (!empty($this->requested_resource_ids)) {
753 $sres = new ilSkillResources($this->base_skill_id, $this->tref_id);
754 foreach ($this->requested_resource_ids as $i) {
755 $sres->setResourceAsImparting($this->requested_level_id, $i, false);
756 $sres->setResourceAsTrigger($this->requested_level_id, $i, false);
757 }
758 $sres->save();
759 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
760 }
761
762 $ilCtrl->redirect($this, "showLevelResources");
763 }
764
765 public function saveResourceSettings(): void
766 {
767 $ilCtrl = $this->ctrl;
768
769 $resources = new ilSkillResources($this->base_skill_id, $this->tref_id);
770
771 foreach ($resources->getResourcesOfLevel($this->requested_level_id) as $r) {
772 $imparting = false;
773 if (!empty($this->requested_suggested)
774 && isset($this->requested_suggested[$r["rep_ref_id"]])
775 && $this->requested_suggested[$r["rep_ref_id"]]
776 ) {
777 $imparting = true;
778 }
779 $trigger = false;
780 if (!empty($this->requested_trigger)
781 && isset($this->requested_trigger[$r["rep_ref_id"]])
782 && $this->requested_trigger[$r["rep_ref_id"]]
783 ) {
784 $trigger = true;
785 }
786 $resources->setResourceAsImparting($this->requested_level_id, $r["rep_ref_id"], $imparting);
787 $resources->setResourceAsTrigger($this->requested_level_id, $r["rep_ref_id"], $trigger);
788 }
789 $resources->save();
790
791 $ilCtrl->redirect($this, "showLevelResources");
792 }
793}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static stripSlashesArray(array $a_arr, bool $a_strip_html=true, string $a_allow="")
Basic skill GUI class.
setTabs(string $a_tab="levels")
initForm(string $a_mode="edit")
ServerRequestInterface $request
redirectToParent(bool $a_tmp_mode=false)
Redirect to parent (identified by current node_id)
ilGlobalTemplateInterface $tpl
initLevelForm(string $a_mode="edit")
__construct(Tree\SkillTreeNodeManager $node_manager, int $a_node_id=0)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static lookupLevelTitle(int $a_id)
This class represents a checkbox property in a property form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilCtrl provides processing control methods.
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
Help GUI class.
setScreenIdComponent(string $a_comp)
language handling
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
This class represents a property form user interface.
Explorer for selecting repository items.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Basic GUI class for skill tree nodes.
addUsageTab(ilTabsGUI $a_tabs)
addObjectsTab(ilTabsGUI $a_tabs)
addStatusInput(ilPropertyFormGUI $a_form)
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
static _lookupType(int $a_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class represents a text area property in a property form.
This class represents a text property in a property form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const POS_LAST_NODE
global $DIC
Definition: feed.php:28
This describes commonalities between all forms.
Definition: Form.php:33
This is how the factory for UI elements looks.
Definition: Factory.php:38
An entity that renders components to a string output.
Definition: Renderer.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setDescription(string $a_descr)
Sets description below title in standard template.
setContent(string $a_html)
Sets content for standard template.
setTitle(string $a_title, bool $hidden=false)
Sets title in standard template.
$ref_id
Definition: ltiauth.php:67
$resources
Definition: ltiservices.php:68
$i
Definition: metadata.php:41
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
form( $class_path, string $cmd)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...