5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNodeGUI.php");
26 $ilCtrl->saveParameter($this,
"obj_id");
28 parent::__construct($a_node_id);
46 $next_class = $ilCtrl->getNextClass($this);
47 $cmd = $ilCtrl->getCmd();
65 $enable_skmg = $skmg_set->get(
"enable_skmg");
71 $this->
getParentGUI()->showTree(
true, $this,
"listTemplates");
72 $ilTabs->activateTab(
"skill_templates");
74 include_once(
"./Services/Skill/classes/class.ilSkillTemplateCategoryGUI.php");
80 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
84 $tpl->setContent($table->getHTML());
95 $enable_skmg = $skmg_set->get(
"enable_skmg");
101 $this->
getParentGUI()->showTree(
false, $this,
"listSkills");
102 $ilTabs->activateTab(
"skills");
104 include_once(
"./Services/Skill/classes/class.ilSkillCategoryGUI.php");
110 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
114 $tpl->setContent($table->getHTML());
124 if (
$_GET[
"tmpmode"])
126 $ilCtrl->redirect($this,
"listTemplates");
130 $ilCtrl->redirect($this,
"listSkills");
139 global
$tpl, $ilTabs;
141 $ilTabs->activateTab(
"skills");
152 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
155 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
156 $fi =
new ilFileInputGUI($lng->txt(
"skmg_input_file"),
"import_file");
158 $fi->setRequired(
true);
162 $form->addCommandButton(
"importSkills", $lng->txt(
"import"));
163 $form->addCommandButton(
"listSkills", $lng->txt(
"cancel"));
165 $form->setTitle($lng->txt(
"skmg_import_skills"));
166 $form->setFormAction($ilCtrl->getFormAction($this));
179 if ($form->checkInput())
181 include_once(
"./Services/Export/classes/class.ilImport.php");
183 $imp->importEntity($_FILES[
"import_file"][
"tmp_name"], $_FILES[
"import_file"][
"name"],
"skmg",
"Services/Skill");
186 $ilCtrl->redirect($this,
"listSkills");
190 $ilTabs->activateTab(
"skills");
191 $form->setValuesByPost();
192 $tpl->setContent($form->getHtml());
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static addCreationButtons()
Add creation buttons.
initInputForm()
Init input form.
importSkills()
Import skills.
cancelDelete()
cancel delete
getParentGUI()
Get Parent GUI class (ilObjSCORM2004LearningModuleGUI).
checkPermissionBool($a_perm)
Check permission pool.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Basic GUI class for skill tree nodes.
Create styles array
The data for the language used.
listTemplates()
List templates.
static addCreationButtons()
Add creation buttons.
__construct($a_node_id=0)
Constructor.
executeCommand()
Execute command.
showImportForm()
Show import form.