5 require_once(
"./Modules/Portfolio/classes/class.ilPCMyCourses.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();
88 $tpl->setContent($a_form->getHTML());
101 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
103 $form->setFormAction($ilCtrl->getFormAction($this));
106 $form->setTitle($this->lng->txt(
"cont_insert_my_courses"));
110 $form->setTitle($this->lng->txt(
"cont_update_my_courses"));
114 $warn->setValue($this->lng->txt(
"cont_my_courses_no_settings"));
115 $form->addItem($warn);
119 $form->addCommandButton(
"create_my_courses", $this->lng->txt(
"select"));
120 $form->addCommandButton(
"cancelCreate", $this->lng->txt(
"cancel"));
125 $form->addCommandButton(
"cancelUpdate", $this->lng->txt(
"cancel"));
137 if($form->checkInput())
140 $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
141 $this->content_obj->setData();
142 $this->updated = $this->pg_obj->update();
143 if ($this->updated ===
true)
145 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
149 $form->setValuesByPost();
150 return $this->
insert($form);
159 if($form->checkInput())
161 $this->content_obj->setData();
162 $this->updated = $this->pg_obj->update();
163 if ($this->updated ===
true)
165 $this->ctrl->returnToParent($this,
"jump".$this->hier_id);
169 $this->pg_obj->addHierIDs();
170 $form->setValuesByPost();
171 return $this->
edit($form);
create()
Create new courses.
initForm($a_insert=false)
Init courses form.
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...)
& executeCommand()
execute command
displayValidationError()
display validation errors
edit(ilPropertyFormGUI $a_form=null)
Edit courses form.
This class represents a non editable value in a property form.
ilPCMyCoursesGUI($a_pg_obj, $a_content_obj, $a_hier_id, $a_pc_id="")
Constructor public.
insert(ilPropertyFormGUI $a_form=null)
Insert courses form.