5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNodeGUI.php");
51 $this->ctrl = $DIC->ctrl();
52 $this->tpl = $DIC[
"tpl"];
53 $this->tabs = $DIC->tabs();
54 $this->toolbar = $DIC->toolbar();
55 $this->lng = $DIC->language();
58 $ilCtrl->saveParameter($this,
"obj_id");
60 parent::__construct($a_node_id);
80 $next_class =
$ilCtrl->getNextClass($this);
83 switch ($next_class) {
102 $enable_skmg = $skmg_set->get(
"enable_skmg");
107 $this->
getParentGUI()->showTree(
true, $this,
"listTemplates");
108 $ilTabs->activateTab(
"skill_templates");
110 include_once(
"./Services/Skill/classes/class.ilSkillTemplateCategoryGUI.php");
115 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
119 (
int)
$_GET[
"obj_id"],
138 $enable_skmg = $skmg_set->get(
"enable_skmg");
143 $this->
getParentGUI()->showTree(
false, $this,
"listSkills");
144 $ilTabs->activateTab(
"skills");
146 include_once(
"./Services/Skill/classes/class.ilSkillCategoryGUI.php");
151 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
155 (
int)
$_GET[
"obj_id"],
169 if (
$_GET[
"tmpmode"]) {
170 $ilCtrl->redirect($this,
"listTemplates");
172 $ilCtrl->redirect($this,
"listSkills");
184 $ilTabs->activateTab(
"skills");
196 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
199 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
202 $fi->setRequired(
true);
206 $form->addCommandButton(
"importSkills",
$lng->txt(
"import"));
207 $form->addCommandButton(
"listSkills",
$lng->txt(
"cancel"));
209 $form->setTitle(
$lng->txt(
"skmg_import_skills"));
226 if (
$form->checkInput()) {
227 include_once(
"./Services/Export/classes/class.ilImport.php");
229 $imp->importEntity($_FILES[
"import_file"][
"tmp_name"], $_FILES[
"import_file"][
"name"],
"skmg",
"Services/Skill");
231 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
232 $ilCtrl->redirect($this,
"listSkills");
234 $ilTabs->activateTab(
"skills");
235 $form->setValuesByPost();
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.
if(isset($_POST['submit'])) $form
Basic GUI class for skill tree nodes.
listTemplates()
List templates.
static addCreationButtons()
Add creation buttons.
__construct($a_node_id=0)
Constructor.
if(empty($password)) $table
executeCommand()
Execute command.
showImportForm()
Show import form.