29use Psr\Http\Message\RequestInterface;
56 $this->
toolbar = $DIC->toolbar();
57 $this->
ui = $DIC->ui();
58 $this->
ctrl = $DIC->ctrl();
59 $this->main_tpl =
$DIC->ui()->mainTemplate();
60 $this->
lng = $DIC->language();
61 $this->request =
$DIC->http()->request();
62 $this->
tabs = $DIC->tabs();
63 $this->admin_gui_request =
$DIC->skills()->internal()->gui()->admin_request();
65 $this->requested_ref_id = $this->admin_gui_request->getRefId();
68 $this->skill_tree_manager = $this->skill_manager->
getTreeManager();
69 $this->skill_management_access_manager = $this->skill_manager->getManagementAccessManager($this->requested_ref_id);
79 switch ($next_class) {
81 case "ilobjskilltreegui":
82 $this->
tabs->clearTargets();
84 $gui->init($this->skill_manager);
89 if (in_array($cmd, [
"listTrees",
"createSkillTree",
"updateTree",
"createTree"])) {
103 $add_tree_button =
$ui->
factory()->button()->standard(
104 $lng->
txt(
"skmg_add_skill_tree"),
108 if ($this->skill_management_access_manager->hasCreateTreePermission()) {
113 $mtpl->setContent($tab->getHTML());
Provides fluid interface to RBAC services.
factory()
Get the factory that crafts UI components.
Request wrapper for guis in skill administration.
Skill internal manager service.
Skill tree objects table.
Class ilCtrl provides processing control methods.
getLinkTargetByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
getNextClass($a_gui_class=null)
@inheritDoc
getCmd(string $fallback_command=null)
@inheritDoc
forwardCommand(object $a_gui_object)
@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
SkillAdminGUIRequest $admin_gui_request
ilGlobalTemplateInterface $main_tpl
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...
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...