/** * Edit skill */ function edit() { global $tpl, $ilToolbar, $lng, $ilCtrl; $this->setTabs("levels"); $ilToolbar->addButton($lng->txt("skmg_add_level"), $ilCtrl->getLinkTarget($this, "addLevel")); include_once "./Services/Skill/classes/class.ilSkillLevelTableGUI.php"; $table = new ilSkillLevelTableGUI($this->base_skill_id, $this, "edit"); $tpl->setContent($table->getHTML()); }
/** * List items */ function listItems() { global $tpl; $this->setTabs("content"); $sk_id = $this->node_object->getSkillTemplateId(); $obj_type = ilSkillTreeNode::_lookupType($sk_id); if ($obj_type == "sctp") { include_once "./Services/Skill/classes/class.ilSkillCatTableGUI.php"; $table = new ilSkillCatTableGUI($this, "listItems", (int) $sk_id, ilSkillCatTableGUI::MODE_SCTP, $this->node_object->getId()); $tpl->setContent($table->getHTML()); } else { if ($obj_type == "sktp") { include_once "./Services/Skill/classes/class.ilSkillLevelTableGUI.php"; $table = new ilSkillLevelTableGUI((int) $sk_id, $this, "edit", $this->node_object->getId()); $tpl->setContent($table->getHTML()); } } }
/** * Edit skill * * @param * @return */ function edit() { global $tpl, $ilToolbar, $lng, $ilCtrl; $this->setTabs("levels"); if ($this->tref_id == 0) { $ilToolbar->addButton($lng->txt("skmg_add_level"), $ilCtrl->getLinkTarget($this, "addLevel")); } include_once "./Services/Skill/classes/class.ilSkillLevelTableGUI.php"; $table = new ilSkillLevelTableGUI((int) $_GET["obj_id"], $this, "edit", $this->tref_id); $tpl->setContent($table->getHTML()); }