24 require_once(
"./Services/COPage/classes/class.ilPCVerification.php");
 
   25 require_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
 
   55                 $next_class = $this->ctrl->getNextClass($this);
 
   58                 $cmd = $this->ctrl->getCmd();
 
   85                 $tpl->setContent($a_form->getHTML());
 
  103                 $tpl->setContent($a_form->getHTML());
 
  116                 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
 
  118                 $form->setFormAction($ilCtrl->getFormAction($this));
 
  121                         $form->setTitle($this->lng->txt(
"cont_insert_verification"));
 
  125                         $form->setTitle($this->lng->txt(
"cont_update_verification"));
 
  128                 $lng->loadLanguageModule(
"wsp");
 
  130                 include_once 
"Services/PersonalWorkspace/classes/class.ilWorkspaceTree.php";
 
  136                         foreach ($tree->getSubTree($root) as $node)
 
  138                                 if (in_array($node[
"type"], array(
"excv", 
"tstv", 
"crsv", 
"scov")))
 
  140                                         $options[$node[
"obj_id"]] = $node[
"title"].
" (".$lng->txt(
"wsp_type_".$node[
"type"]).
")";
 
  145                 $obj = 
new ilSelectInputGUI($this->lng->txt(
"cont_verification_object"), 
"object");
 
  148                 $form->addItem($obj);
 
  153                         $form->addCommandButton(
"create_verification", $this->lng->txt(
"save"));
 
  154                         $form->addCommandButton(
"cancelCreate", $this->lng->txt(
"cancel"));
 
  158                         $data = $this->content_obj->getData();
 
  159                         $obj->setValue($data[
"id"]);
 
  161                         $form->addCommandButton(
"update", $this->lng->txt(
"save"));
 
  162                         $form->addCommandButton(
"cancelUpdate", $this->lng->txt(
"cancel"));
 
  174                 if($form->checkInput())
 
  180                                 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
 
  181                                 $this->content_obj->setData($type, $form->getInput(
"object"));
 
  182                                 $this->updated = $this->pg_obj->update();
 
  183                                 if ($this->updated === 
true)
 
  185                                         $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
  199                 if($form->checkInput())
 
  204                                 $this->content_obj->setData($type, $form->getInput(
"object"));
 
  205                                 $this->updated = $this->pg_obj->update();
 
  206                                 if ($this->updated === 
true)
 
  208                                         $this->ctrl->returnToParent($this, 
"jump".$this->hier_id);
 
  213                 $this->pg_obj->addHierIDs();