/** * Copy skill category */ function copy() { $scat = new ilSkillCategory(); $scat->setTitle($this->getTitle()); $scat->setType($this->getType()); $scat->setSelfEvaluation($this->getSelfEvaluation()); $scat->setOrderNr($this->getOrderNr()); $scat->create(); return $scat; }
/** * Save item */ function saveItem() { include_once "Services/Skill/classes/class.ilSkillCategory.php"; $it = new ilSkillCategory(); $it->setTitle($this->form->getInput("title")); $it->setOrderNr($this->form->getInput("order_nr")); $it->setSelfEvaluation($_POST["self_eval"]); $it->setDraft($_POST["draft"]); $it->create(); ilSkillTreeNode::putInTree($it, (int) $_GET["obj_id"], IL_LAST_NODE); }