5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNodeGUI.php");
6 include_once(
"./Services/Skill/classes/class.ilSkillTemplateCategory.php");
27 $ilCtrl->saveParameter($this,
"obj_id");
28 $this->tref_id = $a_tref_id;
30 parent::ilSkillTreeNodeGUI($a_node_id);
48 $tpl->getStandardTemplate();
50 $next_class = $ilCtrl->getNextClass($this);
51 $cmd = $ilCtrl->getCmd();
68 $ilTabs->clearTargets();
69 $ilHelp->setScreenIdComponent(
"skmg_sctp");
72 $ilTabs->addTab(
"content", $lng->txt(
"content"),
73 $ilCtrl->getLinkTarget($this,
'listItems'));
75 if ($this->tref_id > 0)
82 if ($this->tref_id == 0)
84 $ilTabs->addTab(
"properties", $lng->txt(
"settings"),
85 $ilCtrl->getLinkTarget($this,
'editProperties'));
89 if ($this->tref_id == 0)
91 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
92 $this->node_object->skill_tree->getRootId());
93 $ilTabs->setBackTarget($lng->txt(
"skmg_skill_templates"),
94 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listTemplates"));
95 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
99 parent::setTitleIcon();
101 $lng->txt(
"skmg_sctp").
": ".$this->node_object->getTitle());
104 $ilTabs->activateTab($a_tab);
118 if ($this->tref_id == 0)
120 self::addCreationButtons();
125 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
129 $tpl->setContent($table->getHTML());
142 $ilCtrl->setParameterByClass(
"ilobjskillmanagementgui",
"tmpmode", 1);
144 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
145 "obj_id", (
int)
$_GET[
"obj_id"]);
146 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_template"),
147 $ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui",
"create"));
148 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
149 "obj_id", (
int) $_GET[
"obj_id"]);
150 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_template_category"),
151 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"create"));
155 if ($ilUser->clipboardHasObjectsOfType(
"sktp"))
157 $ilToolbar->addSeparator();
159 $ilToolbar->addButton($lng->txt(
"skmg_insert_skill_template_from_clip"),
160 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"insertSkillTemplateClip"));
164 if ($ilUser->clipboardHasObjectsOfType(
"sctp"))
168 $ilToolbar->addSeparator();
171 $ilToolbar->addButton($lng->txt(
"skmg_insert_template_category_from_clip"),
172 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"insertTemplateCategoryClip"));
183 parent::editProperties();
193 $it->setTitle($this->form->getInput(
"title"));
194 $it->setOrderNr($this->form->getInput(
"order_nr"));
204 $this->node_object->setTitle($this->form->getInput(
"title"));
205 $this->node_object->setOrderNr($this->form->getInput(
"order_nr"));
206 $this->node_object->setSelfEvaluation(
$_POST[
"self_eval"]);
207 $this->node_object->update();
redirectToParent($a_tmp_mode=false)
Redirect to parent (identified by current obj_id)
addUsageTab($a_tabs)
Add usage tab.
__construct($a_node_id=0, $a_tref_id)
Constructor.
setSkillNodeDescription()
Set skill node description.
editProperties()
Edit properties.
static putInTree($a_obj, $a_parent_id="", $a_target_node_id="")
Put this object into the skill tree.
setTabs($a_tab)
output tabs
Basic GUI class for skill tree nodes.
& executeCommand()
Execute command.
Skill template category GUI class.
static addCreationButtons()
Add creation buttons.