/** * Execute Command * * @access public */ public function executeCommand() { $cmd = $this->ctrl->getCmd(self::CMD_SHOW); $nextClass = $this->ctrl->getNextClass($this); $this->ctrl->setParameter($this, 'q_id', (int) $_GET['q_id']); switch ($nextClass) { case 'ilassspecfeedbackpagegui': case 'ilassgenfeedbackpagegui': require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackPageObjectCommandForwarder.php'; $forwarder = new ilAssQuestionFeedbackPageObjectCommandForwarder($this->questionOBJ, $this->ctrl, $this->tabs, $this->lng); $forwarder->forward(); break; default: $cmd .= 'Cmd'; $this->{$cmd}(); break; } }
public function executeCommand() { $this->tabs->setTabActive(self::TAB_ID_QUESTION_PREVIEW); $this->lng->loadLanguageModule('content'); $nextClass = $this->ctrl->getNextClass($this); switch ($nextClass) { case 'ilassquestionhintrequestgui': require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionHintRequestGUI.php'; $gui = new ilAssQuestionHintRequestGUI($this, self::CMD_SHOW, $this->questionGUI, $this->hintTracking); $this->ctrl->forwardCommand($gui); break; case 'ilassspecfeedbackpagegui': case 'ilassgenfeedbackpagegui': require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackPageObjectCommandForwarder.php'; $forwarder = new ilAssQuestionFeedbackPageObjectCommandForwarder($this->questionOBJ, $this->ctrl, $this->tabs, $this->lng); $forwarder->forward(); break; default: $cmd = $this->ctrl->getCmd(self::CMD_SHOW) . 'Cmd'; $this->{$cmd}(); } }