5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNodeGUI.php");
6 include_once(
"./Services/Skill/classes/class.ilSkillTemplateCategory.php");
27 $ilCtrl->saveParameter($this,
"obj_id");
47 $tpl->getStandardTemplate();
49 $next_class = $ilCtrl->getNextClass($this);
50 $cmd = $ilCtrl->getCmd();
67 $ilTabs->clearTargets();
70 $ilTabs->addTab(
"content", $lng->txt(
"content"),
71 $ilCtrl->getLinkTarget($this,
'listItems'));
74 $ilTabs->addTab(
"properties", $lng->txt(
"settings"),
75 $ilCtrl->getLinkTarget($this,
'editProperties'));
78 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
79 $this->node_object->skill_tree->getRootId());
80 $ilTabs->setBackTarget($lng->txt(
"obj_skmg"),
81 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listTemplates"));
82 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
87 $lng->txt(
"skmg_sctp").
": ".$this->node_object->getTitle());
90 $ilTabs->activateTab($a_tab);
107 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
111 $tpl->setContent($table->getHTML());
124 $ilCtrl->setParameterByClass(
"ilobjskillmanagementgui",
"tmpmode", 1);
126 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
127 "obj_id", (
int)
$_GET[
"obj_id"]);
128 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_template"),
129 $ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui",
"create"));
130 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
131 "obj_id", (
int) $_GET[
"obj_id"]);
132 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_template_category"),
133 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"create"));
137 if ($ilUser->clipboardHasObjectsOfType(
"sktp"))
139 $ilToolbar->addSeparator();
141 $ilToolbar->addButton($lng->txt(
"skmg_insert_skill_template_from_clip"),
142 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"insertSkillTemplateClip"));
146 if ($ilUser->clipboardHasObjectsOfType(
"sctp"))
150 $ilToolbar->addSeparator();
153 $ilToolbar->addButton($lng->txt(
"skmg_insert_template_category_from_clip"),
154 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"insertTemplateCategoryClip"));
175 $it->setTitle($this->form->getInput(
"title"));
176 $it->setOrderNr($this->form->getInput(
"order_nr"));
186 $this->node_object->setTitle($this->form->getInput(
"title"));
187 $this->node_object->setOrderNr($this->form->getInput(
"order_nr"));
188 $this->node_object->setSelfEvaluation(
$_POST[
"self_eval"]);
189 $this->node_object->update();