private function forward_edit() { global $ilCtrl; switch ($this->content_obj->getContentClass()) { case 'Media': include_once "./Services/COPage/classes/class.ilPCMediaObjectGUI.php"; $ilCtrl->setCmdClass("ilpcmediaobjectgui"); $ilCtrl->setCmd("insert"); $media_gui = new ilPCMediaObjectGUI($this->pg_obj, $null); $ret = $ilCtrl->forwardCommand($media_gui); break; case 'Text': $this->textCOSelectionGUI(); break; case 'Question': include_once "./Services/COPage/classes/class.ilPCQuestionGUI.php"; $ilCtrl->setCmdClass("ilpcquestiongui"); $ilCtrl->setCmd("insert"); $question_gui = new ilPCQuestionGUI($this->pg_obj, $this->content_obj, $this->hier_id, $this->pc_id); $question_gui->setSelfAssessmentMode(true); $ret = $ilCtrl->forwardCommand($question_gui); break; default: break; } }
protected function forward_edit() { switch ($this->content_obj->getContentClass()) { case self::TYPE_MEDIA: include_once "./Services/COPage/classes/class.ilPCMediaObjectGUI.php"; $this->ctrl->setCmdClass("ilpcmediaobjectgui"); $this->ctrl->setCmd("insert"); $media_gui = new ilPCMediaObjectGUI($this->pg_obj, null); $this->ctrl->forwardCommand($media_gui); break; case self::TYPE_TEXT: $this->textCOSelectionGUI(); break; case self::TYPE_QUESTION: include_once "./Services/COPage/classes/class.ilPCQuestionGUI.php"; $this->ctrl->setCmdClass("ilpcquestiongui"); $this->ctrl->setCmd("insert"); $question_gui = new ilPCQuestionGUI($this->pg_obj, $this->content_obj, $this->hier_id, $this->pc_id); $question_gui->setSelfAssessmentMode(true); $this->ctrl->forwardCommand($question_gui); break; case self::TYPE_VERIFICATION: include_once "./Services/COPage/classes/class.ilPCVerificationGUI.php"; $this->ctrl->setCmdClass("ilpcverificationgui"); $this->ctrl->setCmd("insert"); $cert_gui = new ilPCVerificationGUI($this->pg_obj, $this->content_obj, $this->hier_id, $this->pc_id); $this->ctrl->forwardCommand($cert_gui); break; default: break; } }