protected function showTrackedQuestionListCmd() { $this->prepareSummaryPage(); $this->saveQuestionSolution(); $this->testSequence->loadQuestions($this->dynamicQuestionSetConfig, $this->testSession->getTaxonomyFilterSelection()); $this->testSequence->cleanupQuestions($this->testSession); $data = $this->buildQuestionsTableDataArray($this->testSequence->getTrackedQuestionList($this->testSession->getCurrentQuestionId()), $this->getMarkedQuestions()); include_once "./Modules/Test/classes/tables/class.ilTrackedQuestionsTableGUI.php"; $table_gui = new ilTrackedQuestionsTableGUI($this, 'showTrackedQuestionList', $this->object->getShowMarker()); $table_gui->setData($data); $this->tpl->setVariable('TABLE_LIST_OF_QUESTIONS', $table_gui->getHTML()); if ($this->object->getEnableProcessingTime()) { $this->outProcessingTime($this->testSession->getActiveId()); } }
protected function showTrackedQuestionListCmd() { if (!$this->dynamicQuestionSetConfig->isPreviousQuestionsListEnabled()) { $this->ctrl->redirect($this, self::CMD_SHOW_QUESTION); } $this->prepareSummaryPage(); $questionId = $this->testSession->getCurrentQuestionId(); if ($questionId && !$this->isParticipantsAnswerFixed($questionId)) { $this->updateWorkingTime(); $this->saveQuestionSolution(); $this->persistQuestionAnswerStatus(); $this->testSequence->unsetQuestionPostponed($questionId); } $this->testSequence->loadQuestions($this->dynamicQuestionSetConfig, $this->testSession->getQuestionSetFilterSelection()); $this->testSequence->cleanupQuestions($this->testSession); $this->testSequence->saveToDb(); $data = $this->buildQuestionsTableDataArray($this->testSequence->getTrackedQuestionList($this->testSession->getCurrentQuestionId()), $this->getMarkedQuestions()); include_once "./Modules/Test/classes/tables/class.ilTrackedQuestionsTableGUI.php"; $table_gui = new ilTrackedQuestionsTableGUI($this, 'showTrackedQuestionList', $this->object->getSequenceSettings(), $this->object->getShowMarker()); $table_gui->setData($data); $this->tpl->setVariable('TABLE_LIST_OF_QUESTIONS', $table_gui->getHTML()); if ($this->object->getEnableProcessingTime()) { $this->outProcessingTime($this->testSession->getActiveId()); } }