/**
  * LIst skills for adding
  *
  * @param
  * @return
  */
 function listSkillsForAdd()
 {
     global $ilUser, $tpl, $ilCtrl, $lng, $ilTabs;
     $ilTabs->setBackTarget($lng->txt("back"), $ilCtrl->getLinkTarget($this, ""));
     include_once "./Services/Skill/classes/class.ilPersonalSkillExplorerGUI.php";
     $exp = new ilPersonalSkillExplorerGUI($this, "listSkillsForAdd", $this, "addSkill");
     if ($exp->getHasSelectableNodes()) {
         if (!$exp->handleCommand()) {
             $tpl->setContent($exp->getHTML());
         }
         ilUtil::sendInfo($lng->txt("skmg_select_skill"));
     } else {
         ilUtil::sendInfo($lng->txt("skmg_no_nodes_selectable"));
     }
 }
Example #2
0
 /**
  * Edit skills form
  *
  * @param ilPropertyFormGUI $a_form
  */
 function edit(ilPropertyFormGUI $a_form = null)
 {
     global $tpl;
     $this->displayValidationError();
     // template mode: get skills from global skill tree
     if ($this->getPageConfig()->getEnablePCType("PlaceHolder")) {
         include_once "Services/Skill/classes/class.ilPersonalSkillExplorerGUI.php";
         $exp = new ilPersonalSkillExplorerGUI($this, "edit", $this, "update", "skill_id");
         if (!$exp->handleCommand()) {
             $tpl->setContent($exp->getHTML());
         }
     } else {
         if (!$a_form) {
             $a_form = $this->initForm();
         }
         $tpl->setContent($a_form->getHTML());
     }
 }