5 require_once(
"./Modules/Wiki/classes/class.ilPCAMDPageList.php");
6 require_once(
"./Services/COPage/classes/class.ilPageContentGUI.php");
26 parent::ilPageContentGUI($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id);
35 $next_class = $this->ctrl->getNextClass($this);
38 $cmd = $this->ctrl->getCmd();
65 $tpl->setContent($a_form->getHTML());
83 $tpl->setContent($a_form->getHTML());
96 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
98 $form->setFormAction($ilCtrl->getFormAction($this));
101 $form->setTitle($this->lng->txt(
"cont_insert_amd_page_list"));
105 $form->setTitle($this->lng->txt(
"cont_update_amd_page_list"));
107 $form->setDescription($this->lng->txt(
"wiki_page_list_form_info"));
109 include_once(
'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
111 $this->record_gui->setPropertyForm($form);
115 $this->record_gui->setSearchFormValues($this->content_obj->getFieldValues());
118 $this->record_gui->parse();
120 $no_fields = (count($form->getItems()) == 0);
130 $form->addCommandButton(
"create_amd_page_list", $this->lng->txt(
"select"));
132 $form->addCommandButton(
"cancelCreate", $this->lng->txt(
"cancel"));
138 $form->addCommandButton(
"update", $this->lng->txt(
"select"));
140 $form->addCommandButton(
"cancelUpdate", $this->lng->txt(
"cancel"));
152 if($form->checkInput())
154 $elements = $this->record_gui->importSearchForm();
155 if(is_array($elements))
158 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
159 $this->content_obj->setData($elements);
160 $this->updated = $this->pg_obj->update();
161 if ($this->updated ===
true)
163 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
169 return $this->
insert($form);
178 if($form->checkInput())
180 $elements = $this->record_gui->importSearchForm();
181 if(is_array($elements))
183 $this->content_obj->setData($elements);
184 $this->updated = $this->pg_obj->update();
185 if ($this->updated ===
true)
187 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
192 $this->pg_obj->addHierIDs();
194 return $this->
edit($form);
edit(ilPropertyFormGUI $a_form=null)
Edit courses form.
create()
Create new courses.
& executeCommand()
execute command
ilPCAMDPageListGUI($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id="")
Constructor public.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
displayValidationError()
display validation errors
initForm($a_insert=false)
Init courses form.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
insert(ilPropertyFormGUI $a_form=null)
Insert courses form.
Class ilPCAMDPageListGUI.