5 include_once(
"./Services/Skill/classes/class.ilBasicSkillTemplate.php");
6 include_once(
"./Services/Skill/classes/class.ilBasicSkillGUI.php");
27 $ilCtrl->saveParameter($this, array(
"obj_id",
"level_id"));
48 $ilTabs->addTarget(
"properties",
49 $ilCtrl->getLinkTarget($this,
'showProperties'),
50 "showProperties", get_class($this));
54 $lng->txt(
"skmg_basic_skill_template").
": ".$this->node_object->getTitle());
66 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
73 $ti->setRequired(
true);
74 $this->form->addItem($ti);
80 $ni->setRequired(
true);
81 $this->form->addItem($ni);
84 if ($a_mode ==
"create")
86 $this->form->addCommandButton(
"save", $lng->txt(
"save"));
87 $this->form->addCommandButton(
"cancelSave", $lng->txt(
"cancel"));
88 $this->form->setTitle($lng->txt(
"skmg_create_skll"));
92 $this->form->addCommandButton(
"update", $lng->txt(
"save"));
93 $this->form->setTitle($lng->txt(
"skmg_edit_skll"));
96 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
97 $this->form->setFormAction($ilCtrl->getFormAction($this));
111 $ilTabs->clearTargets();
112 $ilTabs->setBackTarget($lng->txt(
"skmg_skill_levels"),
113 $ilCtrl->getLinkTarget($this,
"edit"));
115 if (
$_GET[
"level_id"] > 0)
117 $ilTabs->addTab(
"level_settings",
118 $lng->txt(
"settings"),
119 $ilCtrl->getLinkTarget($this,
"editLevel"));
131 if (
$_GET[
"level_id"] > 0)
133 $tpl->setTitle($lng->txt(
"skmg_skill_level").
": ".
138 $tpl->setTitle($lng->txt(
"skmg_skill_level"));
141 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
143 $path = $tree->getPathFull($this->node_object->getId());
145 foreach (
$path as $p)
147 if (in_array($p[
"type"], array(
"scat",
"skll")))
149 $desc.= $sep.$p[
"title"];
153 $tpl->setDescription($desc);
166 $ilTabs->clearTargets();
167 $ilTabs->setBackTarget($lng->txt(
"skmg_skill_templates"),
168 $ilCtrl->getLinkTargetByClass(
"ilobjskillmanagementgui",
"editSkillTemplates"));
170 if (is_object($this->node_object))
172 $tpl->setTitle($lng->txt(
"skmg_skill_template").
": ".
173 $this->node_object->getTitle());
176 $ilTabs->addTab(
"levels", $lng->txt(
"skmg_skill_levels"),
177 $ilCtrl->getLinkTarget($this,
'edit'));
180 $ilTabs->addTab(
"properties", $lng->txt(
"settings"),
181 $ilCtrl->getLinkTarget($this,
'editProperties'));
183 $ilTabs->activateTab($a_tab);
192 $tpl->setTitle($lng->txt(
"skmg_skill"));
193 $tpl->setDescription(
"");
203 $it->setTitle($this->form->getInput(
"title"));
204 $it->setOrderNr($this->form->getInput(
"order_nr"));
207 $this->node_object = $it;
217 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"obj_id",
218 $this->node_object->getId());
219 $ilCtrl->redirectByClass(
"ilbasicskilltemplategui",
"edit");