19declare(strict_types=1);
30use Psr\Http\Message\RequestInterface;
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();
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));
Provides fluid interface to RBAC services.
Request wrapper for guis in skill administration.
Skill internal manager service.
Class ilCtrl provides processing control methods.
getNextClass($a_gui_class=null)
@inheritDoc
forwardCommand(object $a_gui_object)
@inheritDoc
getCmd(?string $fallback_command=null)
@inheritDoc
getLinkTargetByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
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...
Skill tree administration.
Tree SkillTreeManager $skill_tree_manager
ILIAS UI Renderer $ui_ren
SkillAdminGUIRequest $admin_gui_request
Tree SkillTreeFactory $skill_tree_factory
ilGlobalTemplateInterface $main_tpl
Table TableManager $table_manager
SkillManagementAccess $skill_management_access_manager
RequestInterface $request
SkillInternalManagerService $skill_manager
__construct(SkillInternalManagerService $skill_manager)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...