5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNodeGUI.php");
26 $ilCtrl->saveParameter($this,
"obj_id");
28 parent::ilSkillTreeNodeGUI($a_node_id);
46 $tpl->getStandardTemplate();
48 $next_class = $ilCtrl->getNextClass($this);
49 $cmd = $ilCtrl->getCmd();
66 $ilTabs->clearTargets();
67 $ilHelp->setScreenIdComponent(
"skmg_scat");
70 $ilTabs->addTab(
"content", $lng->txt(
"content"),
71 $ilCtrl->getLinkTarget($this,
'listItems'));
74 $ilTabs->addTab(
"properties", $lng->txt(
"settings"),
75 $ilCtrl->getLinkTarget($this,
'editProperties'));
81 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
82 $this->node_object->skill_tree->getRootId());
83 $ilTabs->setBackTarget($lng->txt(
"obj_skmg"),
84 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listSkills"));
85 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
89 parent::setTitleIcon();
91 $lng->txt(
"scat").
": ".$this->node_object->getTitle());
94 $ilTabs->activateTab($a_tab);
105 parent::editProperties();
129 $tpl->setContent($this->form->getHTML());
141 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
148 $ti->setRequired(
true);
149 $this->form->addItem($ti);
155 $ni->setRequired(
true);
156 $this->form->addItem($ni);
163 $cb->
setInfo($lng->txt(
"skmg_selectable_info"));
164 $this->form->addItem($cb);
167 if ($a_mode ==
"create")
169 $this->form->addCommandButton(
"save", $lng->txt(
"save"));
170 $this->form->addCommandButton(
"cancelSave", $lng->txt(
"cancel"));
171 $this->form->setTitle($lng->txt(
"skmg_create_skill_category"));
175 $this->form->addCommandButton(
"update", $lng->txt(
"save"));
176 $this->form->setTitle($lng->txt(
"skmg_edit_scat"));
179 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
180 $this->form->setFormAction($ilCtrl->getFormAction($this));
188 include_once
"Services/Skill/classes/class.ilSkillCategory.php";
190 $it->setTitle($this->form->getInput(
"title"));
191 $it->setOrderNr($this->form->getInput(
"order_nr"));
192 $it->setSelfEvaluation(
$_POST[
"self_eval"]);
193 $it->setStatus(
$_POST[
"status"]);
204 $values[
"title"] = $this->node_object->getTitle();
205 $values[
"order_nr"] = $this->node_object->getOrderNr();
206 $values[
"self_eval"] = $this->node_object->getSelfEvaluation();
207 $values[
"status"] = $this->node_object->getStatus();
208 $this->form->setValuesByArray($values);
216 $this->node_object->setTitle($this->form->getInput(
"title"));
217 $this->node_object->setOrderNr($this->form->getInput(
"order_nr"));
218 $this->node_object->setSelfEvaluation(
$_POST[
"self_eval"]);
219 $this->node_object->setStatus(
$_POST[
"status"]);
220 $this->node_object->update();
255 self::addCreationButtons();
258 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
262 $tpl->setContent($table->getHTML());
276 $ilCtrl->setParameterByClass(
"ilbasicskillgui",
277 "obj_id", (
int)
$_GET[
"obj_id"]);
278 $ilToolbar->addButton($lng->txt(
"skmg_create_skll"),
279 $ilCtrl->getLinkTargetByClass(
"ilbasicskillgui",
"create"));
282 $ilCtrl->setParameterByClass(
"ilskillcategorygui",
283 "obj_id", (
int) $_GET[
"obj_id"]);
284 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_category"),
285 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"create"));
288 $ilCtrl->setParameterByClass(
"ilskilltemplatereferencegui",
289 "obj_id", (
int) $_GET[
"obj_id"]);
290 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_template_reference"),
291 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui",
"create"));
295 if ($ilUser->clipboardHasObjectsOfType(
"skll"))
297 $ilToolbar->addSeparator();
299 $ilToolbar->addButton($lng->txt(
"skmg_insert_basic_skill_from_clip"),
300 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertBasicSkillClip"));
304 if ($ilUser->clipboardHasObjectsOfType(
"scat"))
308 $ilToolbar->addSeparator();
311 $ilToolbar->addButton($lng->txt(
"skmg_insert_skill_category_from_clip"),
312 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertSkillCategoryClip"));
316 if ($ilUser->clipboardHasObjectsOfType(
"sktr"))
320 $ilToolbar->addSeparator();
323 $ilToolbar->addButton($lng->txt(
"skmg_insert_skill_template_reference_from_clip"),
324 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertTemplateReferenceClip"));
339 $ilCtrl->redirectByClass(
"ilobjskillmanagementgui",
"editSkills");
357 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id", (
int) $_GET[
"obj_id"]);
358 $ilCtrl->redirectByClass(
"ilskillrootgui",
"listSkills");
362 parent::redirectToParent();
addUsageTab($a_tabs)
Add usage tab.
Skill category GUI class.
static addCreationButtons()
Add creation buttons.
setSkillNodeDescription()
Set skill node description.
proceedDragDrop()
Perform drag and drop action.
static putInTree($a_obj, $a_parent_id="", $a_target_node_id="")
Put this object into the skill tree.
redirectToParent()
Redirect to parent (identified by current obj_id)
static _lookupType($a_obj_id)
Lookup Type.
setTabs($a_tab)
output tabs
Basic GUI class for skill tree nodes.
__construct($a_node_id=0)
Constructor.
& executeCommand()
Execute command.
This class represents a text property in a property form.
setMaxLength($a_maxlength)
Set Max Length.
editProperties()
Edit properties.
getValues()
Get current values for from.
initForm($a_mode="edit")
Init form.
addStatusInput(ilPropertyFormGUI $a_form)
Add status input.