5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNodeGUI.php");
51 $this->ctrl = $DIC->ctrl();
52 $this->tpl = $DIC[
"tpl"];
53 $this->tabs = $DIC->tabs();
54 $this->lng = $DIC->language();
55 $this->
help = $DIC[
"ilHelp"];
58 $ilCtrl->saveParameter($this,
"obj_id");
82 $next_class =
$ilCtrl->getNextClass($this);
85 switch ($next_class) {
103 $ilTabs->clearTargets();
104 $ilHelp->setScreenIdComponent(
"skmg_scat");
109 $lng->txt(
"content"),
110 $ilCtrl->getLinkTarget($this,
'listItems')
116 $lng->txt(
"settings"),
117 $ilCtrl->getLinkTarget($this,
'editProperties')
127 $this->node_object->skill_tree->getRootId()
129 $ilTabs->setBackTarget(
130 $lng->txt(
"obj_skmg"),
131 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"listSkills")
140 parent::setTitleIcon();
142 $lng->txt(
"scat") .
": " . $this->node_object->getTitle()
146 $ilTabs->activateTab($a_tab);
157 parent::editProperties();
181 $tpl->setContent($this->form->getHTML());
194 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
199 $ti->setMaxLength(200);
201 $ti->setRequired(
true);
202 $this->form->addItem($ti);
207 $this->form->addItem($ta);
215 $this->form->addItem($cb);
219 if ($a_mode ==
"create") {
220 $this->form->addCommandButton(
"save",
$lng->txt(
"save"));
221 $this->form->addCommandButton(
"cancelSave",
$lng->txt(
"cancel"));
222 $this->form->setTitle(
$lng->txt(
"skmg_create_skill_category"));
224 $this->form->addCommandButton(
"update",
$lng->txt(
"save"));
225 $this->form->setTitle(
$lng->txt(
"skmg_edit_scat"));
229 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
230 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
241 include_once
"Services/Skill/classes/class.ilSkillCategory.php";
246 $it->setTitle($this->form->getInput(
"title"));
247 $it->setDescription($this->form->getDescription(
"description"));
248 $it->setOrderNr($tree->getMaxOrderNr((
int)
$_GET[
"obj_id"]) + 10);
249 $it->setSelfEvaluation(
$_POST[
"self_eval"]);
250 $it->setStatus(
$_POST[
"status"]);
261 $values[
"title"] = $this->node_object->getTitle();
262 $values[
"description"] = $this->node_object->getDescription();
263 $values[
"self_eval"] = $this->node_object->getSelfEvaluation();
264 $values[
"status"] = $this->node_object->getStatus();
265 $this->form->setValuesByArray($values);
277 $this->node_object->setTitle($this->form->getInput(
"title"));
278 $this->node_object->setDescription($this->form->getInput(
"description"));
279 $this->node_object->setSelfEvaluation(
$_POST[
"self_eval"]);
280 $this->node_object->setStatus(
$_POST[
"status"]);
281 $this->node_object->update();
322 self::addCreationButtons();
326 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
330 (
int)
$_GET[
"obj_id"],
334 $tpl->setContent($table->getHTML());
348 $lng = $DIC->language();
349 $ilToolbar = $DIC->toolbar();
356 (
int)
$_GET[
"obj_id"]
358 $ilToolbar->addButton(
359 $lng->txt(
"skmg_create_skll"),
360 $ilCtrl->getLinkTargetByClass(
"ilbasicskillgui",
"create")
365 "ilskillcategorygui",
367 (
int) $_GET[
"obj_id"]
369 $ilToolbar->addButton(
370 $lng->txt(
"skmg_create_skill_category"),
371 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"create")
376 "ilskilltemplatereferencegui",
378 (
int) $_GET[
"obj_id"]
380 $ilToolbar->addButton(
381 $lng->txt(
"skmg_create_skill_template_reference"),
382 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui",
"create")
387 if (
$ilUser->clipboardHasObjectsOfType(
"skll")) {
388 $ilToolbar->addSeparator();
390 $ilToolbar->addButton(
391 $lng->txt(
"skmg_insert_basic_skill_from_clip"),
392 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertBasicSkillClip")
397 if (
$ilUser->clipboardHasObjectsOfType(
"scat")) {
399 $ilToolbar->addSeparator();
402 $ilToolbar->addButton(
403 $lng->txt(
"skmg_insert_skill_category_from_clip"),
404 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertSkillCategoryClip")
409 if (
$ilUser->clipboardHasObjectsOfType(
"sktr")) {
411 $ilToolbar->addSeparator();
414 $ilToolbar->addButton(
415 $lng->txt(
"skmg_insert_skill_template_reference_from_clip"),
416 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertTemplateReferenceClip")
421 $ilToolbar->addButton(
422 $lng->txt(
"skmg_import_skills"),
423 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"showImportForm")
437 $ilCtrl->redirectByClass(
"ilobjskillmanagementgui",
"editSkills");
454 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id", (
int) $_GET[
"obj_id"]);
455 $ilCtrl->redirectByClass(
"ilskillrootgui",
"listSkills");
459 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.
static _lookupType($a_obj_id)
Lookup Type.
checkPermissionBool($a_perm)
Check permission pool.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
setTabs($a_tab)
output tabs
executeCommand()
Execute command.
Basic GUI class for skill tree nodes.
__construct($a_node_id=0)
Constructor.
editProperties()
Edit properties.
setRows($a_rows)
Set Rows.
__construct(Container $dic, ilPlugin $plugin)
This class represents a text area property in a property form.
getValues()
Get current values for from.
initForm($a_mode="edit")
Init form.
addStatusInput(ilPropertyFormGUI $a_form)
Add status input.
redirectToParent($a_tmp_mode=false)
Redirect to parent (identified by current obj_id)