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::__construct($a_node_id);
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'));
77 if ($this->tref_id == 0)
79 $ilTabs->addTab(
"properties", $lng->txt(
"settings"),
80 $ilCtrl->getLinkTarget($this,
'editProperties'));
87 if ($this->tref_id == 0)
89 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
90 $this->node_object->skill_tree->getRootId());
91 $ilTabs->setBackTarget($lng->txt(
"skmg_skill_templates"),
92 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listTemplates"));
93 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id",
97 parent::setTitleIcon();
99 $lng->txt(
"skmg_sctp").
": ".$this->node_object->getTitle());
102 $ilTabs->activateTab($a_tab);
123 if ($this->tref_id == 0)
125 self::addCreationButtons();
131 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
135 $tpl->setContent($table->getHTML());
148 $ilCtrl->setParameterByClass(
"ilobjskillmanagementgui",
"tmpmode", 1);
150 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
151 "obj_id", (
int)
$_GET[
"obj_id"]);
152 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_template"),
153 $ilCtrl->getLinkTargetByClass(
"ilbasicskilltemplategui",
"create"));
154 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
155 "obj_id", (
int) $_GET[
"obj_id"]);
156 $ilToolbar->addButton($lng->txt(
"skmg_create_skill_template_category"),
157 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"create"));
161 if ($ilUser->clipboardHasObjectsOfType(
"sktp"))
163 $ilToolbar->addSeparator();
165 $ilToolbar->addButton($lng->txt(
"skmg_insert_skill_template_from_clip"),
166 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"insertSkillTemplateClip"));
170 if ($ilUser->clipboardHasObjectsOfType(
"sctp"))
174 $ilToolbar->addSeparator();
177 $ilToolbar->addButton($lng->txt(
"skmg_insert_template_category_from_clip"),
178 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatecategorygui",
"insertTemplateCategoryClip"));
189 parent::editProperties();
204 $it->setTitle($this->form->getInput(
"title"));
205 $it->setOrderNr($this->form->getInput(
"order_nr"));
220 $this->node_object->setTitle($this->form->getInput(
"title"));
221 $this->node_object->setOrderNr($this->form->getInput(
"order_nr"));
222 $this->node_object->setSelfEvaluation(
$_POST[
"self_eval"]);
223 $this->node_object->update();
242 if ($this->tref_id > 0)
244 return parent::showUsage();
251 include_once(
"./Services/Skill/classes/class.ilSkillUsage.php");
253 $usages = $usage_info->getAllUsagesOfTemplate((
int)
$_GET[
"obj_id"]);
256 include_once(
"./Services/Skill/classes/class.ilSkillUsageTableGUI.php");
257 foreach ($usages as $k => $usage)
263 $tpl->setContent(
$html);
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
checkPermissionBool($a_perm)
Check permission pool.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
executeCommand()
Execute command.
showUsage()
Show skill usage.
Basic GUI class for skill tree nodes.
TableGUI class for skill usages.
Skill template category GUI class.
static addCreationButtons()
Add creation buttons.