5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNodeGUI.php");
26 $ilCtrl->saveParameter($this,
"obj_id");
46 $tpl->getStandardTemplate();
48 $next_class = $ilCtrl->getNextClass($this);
49 $cmd = $ilCtrl->getCmd();
66 $ilTabs->clearTargets();
69 $ilTabs->addTab(
"content", $lng->txt(
"content"),
70 $ilCtrl->getLinkTarget($this,
'listItems'));
73 $ilTabs->addTab(
"properties", $lng->txt(
"settings"),
74 $ilCtrl->getLinkTarget($this,
'editProperties'));
77 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
78 $this->node_object->skill_tree->getRootId());
79 $ilTabs->setBackTarget($lng->txt(
"obj_skmg"),
80 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listSkills"));
81 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
87 $lng->txt(
"scat").
": ".$this->node_object->getTitle());
90 $ilTabs->activateTab($a_tab);
125 $tpl->setContent($this->form->getHTML());
137 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
144 $ti->setRequired(
true);
145 $this->form->addItem($ti);
151 $ni->setRequired(
true);
152 $this->form->addItem($ni);
156 $cb->
setInfo($lng->txt(
"skmg_draft_info"));
157 $this->form->addItem($cb);
161 $cb->
setInfo($lng->txt(
"skmg_selectable_info"));
162 $this->form->addItem($cb);
165 if ($a_mode ==
"create")
167 $this->form->addCommandButton(
"save", $lng->txt(
"save"));
168 $this->form->addCommandButton(
"cancelSave", $lng->txt(
"cancel"));
169 $this->form->setTitle($lng->txt(
"skmg_create_skill_category"));
173 $this->form->addCommandButton(
"update", $lng->txt(
"save"));
174 $this->form->setTitle($lng->txt(
"skmg_edit_scat"));
177 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
178 $this->form->setFormAction($ilCtrl->getFormAction($this));
186 include_once
"Services/Skill/classes/class.ilSkillCategory.php";
188 $it->setTitle($this->form->getInput(
"title"));
189 $it->setOrderNr($this->form->getInput(
"order_nr"));
190 $it->setSelfEvaluation(
$_POST[
"self_eval"]);
191 $it->setDraft(
$_POST[
"draft"]);
202 $values[
"title"] = $this->node_object->getTitle();
203 $values[
"order_nr"] = $this->node_object->getOrderNr();
204 $values[
"self_eval"] = $this->node_object->getSelfEvaluation();
205 $values[
"draft"] = $this->node_object->getDraft();
206 echo
"-".$this->node_object->getDraft().
"-";
207 $this->form->setValuesByArray($values);
215 $this->node_object->setTitle($this->form->getInput(
"title"));
216 $this->node_object->setOrderNr($this->form->getInput(
"order_nr"));
217 $this->node_object->setSelfEvaluation(
$_POST[
"self_eval"]);
218 $this->node_object->setDraft(
$_POST[
"draft"]);
219 $this->node_object->update();
257 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
261 $tpl->setContent($table->getHTML());
275 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
276 "obj_id", (
int)
$_GET[
"obj_id"]);
277 $ilToolbar->addButton($lng->txt(
"skmg_create_skll"),
278 $ilCtrl->getLinkTargetByClass(
"ilbasicskillgui",
"create"));
281 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
282 "obj_id", (
int) $_GET[
"obj_id"]);
283 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_category"),
284 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"create"));
287 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
288 "obj_id", (
int) $_GET[
"obj_id"]);
289 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_template_reference"),
290 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui",
"create"));
294 if ($ilUser->clipboardHasObjectsOfType(
"skll"))
296 $ilToolbar->addSeparator();
298 $ilToolbar->addButton($lng->txt(
"skmg_insert_basic_skill_from_clip"),
299 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertBasicSkillClip"));
303 if ($ilUser->clipboardHasObjectsOfType(
"scat"))
307 $ilToolbar->addSeparator();
310 $ilToolbar->addButton($lng->txt(
"skmg_insert_skill_category_from_clip"),
311 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertSkillCategoryClip"));
315 if ($ilUser->clipboardHasObjectsOfType(
"sktr"))
319 $ilToolbar->addSeparator();
322 $ilToolbar->addButton($lng->txt(
"skmg_insert_skill_template_reference_from_clip"),
323 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertTemplateReferenceClip"));
338 $ilCtrl->redirectByClass(
"ilobjskillmanagementgui",
"editSkills");
356 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id", (
int) $_GET[
"obj_id"]);
357 $ilCtrl->redirectByClass(
"ilskillrootgui",
"listSkills");