4 require_once
'Modules/Test/classes/class.ilTestServiceGUI.php';
27 parent::__construct($testOBJ);
32 if( !$this->
object->getEnableExamview() )
37 switch( $this->ctrl->getNextClass($this) )
49 switch( $this->ctrl->getCmd() )
53 if( $this->
object->getShowExamviewPdf() )
75 if ($this->
object->getKioskMode())
77 $this->tpl->setBodyClass(
"kiosk");
78 $this->tpl->setAddFooter(FALSE);
92 require_once
'Modules/Test/classes/class.ilTestPlayerCommands.php';
93 require_once
'Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
94 require_once
'Services/UIComponent/Button/classes/class.ilLinkButton.php';
95 require_once
'Services/UIComponent/Button/classes/class.ilButton.php';
98 $toolbar->setId($toolbarId);
100 $backUrl = $this->ctrl->getLinkTarget($this->testOutputGUI, $this->
object->getListOfQuestionsEnd() ?
105 $button->setCaption(
'btn_previous');
106 $button->setUrl($backUrl);
107 $toolbar->addButtonInstance($button);
109 if( $this->
object->getShowExamviewPdf() )
111 $pdfUrl = $this->ctrl->getLinkTarget($this,
'pdfDownload');
114 $button->setCaption(
'pdf_export');
115 $button->setUrl($pdfUrl);
117 $toolbar->addButtonInstance($button);
120 $this->ctrl->setParameter($this->testOutputGUI,
'reviewed', 1);
122 $this->ctrl->setParameter($this->testOutputGUI,
'reviewed', 0);
125 $button->setPrimary(
true);
126 $button->setCaption(
'btn_next');
127 $button->setUrl($nextUrl);
128 $toolbar->addButtonInstance($button);
137 require_once
'Modules/Test/classes/class.ilTestResultHeaderLabelBuilder.php';
140 $objectivesList = null;
144 $testSequence = $this->testSequenceFactory->getSequenceByActiveIdAndPass($this->testSession->getActiveId(), $this->testSession->getPass());
145 $testSequence->loadFromDb();
146 $testSequence->loadQuestions();
148 require_once
'Modules/Course/classes/Objectives/class.ilLOTestQuestionAdapter.php';
152 $objectivesList->loadObjectivesTitles();
154 $testResultHeaderLabelBuilder->setObjectiveOrientedContainerId($this->testSession->getObjectiveOrientedContainerId());
155 $testResultHeaderLabelBuilder->setUserId($this->testSession->getUserId());
156 $testResultHeaderLabelBuilder->setTestObjId($this->
object->getId());
157 $testResultHeaderLabelBuilder->setTestRefId($this->
object->getRefId());
158 $testResultHeaderLabelBuilder->initObjectiveOrientedMode();
161 $results = $this->
object->getTestResult(
162 $this->testSession->getActiveId(), $this->testSession->getPass(),
false,
166 require_once
'class.ilTestEvaluationGUI.php';
168 $testevaluationgui->setContextResultPresentation(
false);
170 $results_output = $testevaluationgui->getPassListOfAnswers(
$results,
171 $this->testSession->getActiveId(), $this->testSession->getPass(),
172 false,
false,
false,
false,
173 false, $objectivesList, $testResultHeaderLabelBuilder
176 return $results_output;
192 require_once
'./Services/PDFGeneration/classes/class.ilPDFGeneration.php';
195 require_once
'class.ilTestPDFGenerator.php';
210 $inst_id = $ilSetting->get(
'inst_id', null);
212 require_once
'Services/Utilities/classes/class.ilUtil.php';
222 $filename .= $inst_id .
'-' . $this->testOutputGUI->object->getId();
223 $filename .=
'-' . $this->testSession->getActiveId() .
'-';
224 $filename .= $this->testSession->getPass() .
'.pdf';
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getObjectiveOrientedContainer()
Output class for assessment test execution.
__construct(ilTestOutputGUI $testOutputGUI, ilObjTest $testOBJ, ilTestSession $testSession)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
const BACK_FROM_FINISHING
getContentBlockName()
Returns the name of the current content block (depends on the kiosk mode setting) ...
buildQuestionRelatedObjectivesList(ilLOTestQuestionAdapter $objectivesAdapter, ilTestQuestionSequence $testSequence)
static getInstance(ilTestSession $a_test_session)
Class ilTestSubmissionReviewGUI.
Output class for assessment test evaluation.
buildPdfFilename()
not in use, but we keep the code (no archive for every user at end of test !!)
static removeTrailingPathSeparators($path)
static prepareGeneration()
Prepare the PDF generation This initializes the purpose for MathJax rendering It has to be called bef...
Create new PHPExcel object
obj_idprivate
static generatePDF($pdf_output, $output_mode, $filename=null)
Service GUI class for tests.
const PDF_OUTPUT_DOWNLOAD
static getWebspaceDir($mode="filesystem")
get webspace directory