3 declare(strict_types=1);
42 $this->
ctrl = $DIC->ctrl();
43 $this->tpl = $DIC[
"tpl"];
44 $this->
tabs = $DIC->tabs();
45 $this->
toolbar = $DIC->toolbar();
46 $this->
lng = $DIC->language();
47 $ilCtrl = $DIC->ctrl();
49 $ilCtrl->saveParameter($this,
"node_id");
65 $next_class = $ilCtrl->getNextClass($this);
66 $cmd = $ilCtrl->getCmd();
68 switch ($next_class) {
84 $enable_skmg = $skmg_set->get(
"enable_skmg");
86 $this->tpl->setOnScreenMessage(
'info', $lng->
txt(
"skmg_skill_management_deactivated"));
89 $this->
getParentGUI()->showTree(
true, $this,
"listTemplates");
90 $ilTabs->activateTab(
"skill_templates");
92 if ($this->tree_access_manager->hasManageCompetenceTemplatesPermission()) {
99 $this->requested_node_id,
115 $enable_skmg = $skmg_set->get(
"enable_skmg");
117 $this->tpl->setOnScreenMessage(
'info', $lng->
txt(
"skmg_skill_management_deactivated"));
120 $this->
getParentGUI()->showTree(
false, $this,
"listSkills");
121 $ilTabs->activateTab(
"skills");
123 if ($this->tree_access_manager->hasManageCompetencesPermission()) {
130 $this->requested_node_id,
141 if ($this->requested_tmpmode) {
142 $ilCtrl->
redirect($this,
"listTemplates");
144 $ilCtrl->redirect($this,
"listSkills");
155 $ilTabs->setBackTarget(
160 $ilTabs->activateTab(
"skills");
173 $fi->setRequired(
true);
196 $conf = $imp->getConfig(
"components/ILIAS/Skill");
197 $conf->setSkillTreeId($this->skill_tree_id);
198 $imp->importEntity($_FILES[
"import_file"][
"tmp_name"], $_FILES[
"import_file"][
"name"],
"skmg",
"components/ILIAS/Skill");
200 $this->tpl->setOnScreenMessage(
'success', $lng->
txt(
"msg_obj_modified"),
true);
201 $ilCtrl->redirect($this,
"listSkills");
203 $ilTabs->activateTab(
"skills");
ilGlobalTemplateInterface $tpl
static addCreationButtons()
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
setContent(string $a_html)
Sets content for standard template.
Basic GUI class for skill tree nodes.
getLinkTarget(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
static addCreationButtons()
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Node\SkillTreeNodeManager $node_manager, int $a_node_id=0)