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");
60 parent::__construct($a_node_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");
201 $ti->setRequired(
true);
202 $this->form->addItem($ti);
210 $this->form->addItem($cb);
214 if ($a_mode ==
"create") {
215 $this->form->addCommandButton(
"save",
$lng->txt(
"save"));
216 $this->form->addCommandButton(
"cancelSave",
$lng->txt(
"cancel"));
217 $this->form->setTitle(
$lng->txt(
"skmg_create_skill_category"));
219 $this->form->addCommandButton(
"update",
$lng->txt(
"save"));
220 $this->form->setTitle(
$lng->txt(
"skmg_edit_scat"));
224 $ilCtrl->setParameter($this,
"obj_id",
$_GET[
"obj_id"]);
225 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
236 include_once
"Services/Skill/classes/class.ilSkillCategory.php";
241 $it->setTitle($this->form->getInput(
"title"));
242 $it->setOrderNr(
$tree->getMaxOrderNr((
int)
$_GET[
"obj_id"]) + 10);
243 $it->setSelfEvaluation(
$_POST[
"self_eval"]);
244 $it->setStatus(
$_POST[
"status"]);
255 $values[
"title"] = $this->node_object->getTitle();
256 $values[
"self_eval"] = $this->node_object->getSelfEvaluation();
257 $values[
"status"] = $this->node_object->getStatus();
258 $this->form->setValuesByArray(
$values);
270 $this->node_object->setTitle($this->form->getInput(
"title"));
271 $this->node_object->setSelfEvaluation(
$_POST[
"self_eval"]);
272 $this->node_object->setStatus(
$_POST[
"status"]);
273 $this->node_object->update();
314 self::addCreationButtons();
318 include_once(
"./Services/Skill/classes/class.ilSkillCatTableGUI.php");
322 (
int)
$_GET[
"obj_id"],
340 $lng = $DIC->language();
341 $ilToolbar = $DIC->toolbar();
348 (
int)
$_GET[
"obj_id"]
350 $ilToolbar->addButton(
351 $lng->txt(
"skmg_create_skll"),
352 $ilCtrl->getLinkTargetByClass(
"ilbasicskillgui",
"create")
357 "ilskillcategorygui",
359 (
int) $_GET[
"obj_id"]
361 $ilToolbar->addButton(
362 $lng->txt(
"skmg_create_skill_category"),
363 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"create")
368 "ilskilltemplatereferencegui",
370 (
int) $_GET[
"obj_id"]
372 $ilToolbar->addButton(
373 $lng->txt(
"skmg_create_skill_template_reference"),
374 $ilCtrl->getLinkTargetByClass(
"ilskilltemplatereferencegui",
"create")
379 if (
$ilUser->clipboardHasObjectsOfType(
"skll")) {
380 $ilToolbar->addSeparator();
382 $ilToolbar->addButton(
383 $lng->txt(
"skmg_insert_basic_skill_from_clip"),
384 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertBasicSkillClip")
389 if (
$ilUser->clipboardHasObjectsOfType(
"scat")) {
391 $ilToolbar->addSeparator();
394 $ilToolbar->addButton(
395 $lng->txt(
"skmg_insert_skill_category_from_clip"),
396 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertSkillCategoryClip")
401 if (
$ilUser->clipboardHasObjectsOfType(
"sktr")) {
403 $ilToolbar->addSeparator();
406 $ilToolbar->addButton(
407 $lng->txt(
"skmg_insert_skill_template_reference_from_clip"),
408 $ilCtrl->getLinkTargetByClass(
"ilskillcategorygui",
"insertTemplateReferenceClip")
413 $ilToolbar->addButton(
414 $lng->txt(
"skmg_import_skills"),
415 $ilCtrl->getLinkTargetByClass(
"ilskillrootgui",
"showImportForm")
429 $ilCtrl->redirectByClass(
"ilobjskillmanagementgui",
"editSkills");
446 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"obj_id", (
int) $_GET[
"obj_id"]);
447 $ilCtrl->redirectByClass(
"ilskillrootgui",
"listSkills");
451 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.
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.
if(empty($password)) $table
addStatusInput(ilPropertyFormGUI $a_form)
Add status input.
redirectToParent($a_tmp_mode=false)
Redirect to parent (identified by current obj_id)