24 require_once(
"./Services/COPage/classes/class.ilPCSkills.php");
 
   25 require_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
 
   44         function ilPCSkillsGUI(&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id = 
"")
 
   55                 $next_class = $this->ctrl->getNextClass($this);
 
   58                 $cmd = $this->ctrl->getCmd();
 
   84                         include_once 
"Services/Skill/classes/class.ilPersonalSkillExplorerGUI.php";
 
   86                         if (!$exp->handleCommand())
 
   88                                 $tpl->setContent($exp->getHTML());
 
   98                         $tpl->setContent($a_form->getHTML());
 
  116                         include_once 
"Services/Skill/classes/class.ilPersonalSkillExplorerGUI.php";
 
  118                         if (!$exp->handleCommand())
 
  120                                 $tpl->setContent($exp->getHTML());
 
  130                         $tpl->setContent($a_form->getHTML());
 
  144                 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  146                 $form->setFormAction($ilCtrl->getFormAction($this));
 
  149                         $form->setTitle($this->lng->txt(
"cont_insert_skills"));
 
  153                         $form->setTitle($this->lng->txt(
"cont_update_skills"));
 
  157                 include_once 
"Services/Skill/classes/class.ilPersonalSkill.php";
 
  162                         foreach($skills as $skill)
 
  164                                 $options[$skill[
"skill_node_id"]] = $skill[
"title"];
 
  175                 $form->addItem($obj);                           
 
  179                         $form->addCommandButton(
"create_skill", $this->lng->txt(
"select"));
 
  180                         $form->addCommandButton(
"cancelCreate", $this->lng->txt(
"cancel"));
 
  184                         $obj->setValue($this->content_obj->getSkillId());
 
  185                         $form->addCommandButton(
"update", $this->lng->txt(
"select"));
 
  186                         $form->addCommandButton(
"cancelUpdate", $this->lng->txt(
"cancel"));
 
  202                         $data = (int)
$_GET[
"skill_id"];
 
  209                         if($form->checkInput())
 
  211                                 $data = $form->getInput(
"skill_id");
 
  219                         $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
 
  220                         $this->content_obj->setData($data);
 
  221                         $this->updated = $this->pg_obj->update();
 
  222                         if ($this->updated === 
true)
 
  224                                 $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
  228                 $form->setValuesByPost();
 
  229                 return $this->
insert($form);    
 
  240                         $data = (int)
$_GET[
"skill_id"];
 
  247                         if($form->checkInput())
 
  249                                 $data = $form->getInput(
"skill_id");
 
  256                         $this->content_obj->setData($data);
 
  257                         $this->updated = $this->pg_obj->update();
 
  258                         if ($this->updated === 
true)
 
  260                                 $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
  264                 $this->pg_obj->addHierIDs();
 
  265                 $form->setValuesByPost();
 
  266                 return $this->
edit($form);