19 declare(strict_types=1);
46 protected \ILIAS\Data\Factory
$df;
61 $this->
toolbar = $DIC->toolbar();
62 $this->
ctrl = $DIC->ctrl();
63 $this->main_tpl = $DIC->ui()->mainTemplate();
64 $this->
lng = $DIC->language();
65 $this->ui_fac = $DIC->ui()->factory();
66 $this->ui_ren = $DIC->ui()->renderer();
67 $this->df = new \ILIAS\Data\Factory();
68 $this->request = $DIC->http()->request();
69 $this->
tabs = $DIC->tabs();
70 $this->admin_gui_request = $DIC->skills()->internal()->gui()->admin_request();
72 $this->requested_ref_id = $this->admin_gui_request->getRefId();
75 $this->skill_tree_manager = $this->skill_manager->
getTreeManager();
76 $this->skill_tree_factory = $DIC->skills()->internal()->factory()->tree();
77 $this->skill_management_access_manager = $this->skill_manager->getManagementAccessManager($this->requested_ref_id);
78 $this->table_manager = $DIC->skills()->internal()->manager()->getTableManager();
86 $cmd = $ctrl->
getCmd(
"listTrees");
88 switch ($next_class) {
89 case "ilobjskilltreegui":
90 $this->
tabs->clearTargets();
92 $gui->init($this->skill_manager);
97 if (in_array($cmd, [
"listTrees",
"createSkillTree",
"updateTree",
"createTree"])) {
110 $add_tree_button = $this->ui_fac->button()->standard(
111 $lng->
txt(
"skmg_add_skill_tree"),
115 if ($this->skill_management_access_manager->hasCreateTreePermission()) {
119 $table = $this->table_manager->getTreeTable($this->requested_ref_id)->getComponent();
121 $mtpl->setContent($this->ui_ren->render($table));
ilGlobalTemplateInterface $main_tpl
Table TableManager $table_manager
Skill tree administration.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
Request wrapper for guis in skill administration.
getCmd(?string $fallback_command=null)
SkillManagementAccess $skill_management_access_manager
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
SkillAdminGUIRequest $admin_gui_request
SkillInternalManagerService $skill_manager
ILIAS UI Renderer $ui_ren
__construct(SkillInternalManagerService $skill_manager)
forwardCommand(object $a_gui_object)
getNextClass($a_gui_class=null)
Skill internal manager service.
RequestInterface $request
Tree SkillTreeManager $skill_tree_manager
Tree SkillTreeFactory $skill_tree_factory
getLinkTargetByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)