4 require_once
'./Modules/Test/classes/class.ilTestServiceGUI.php';
18 $this->ctrl->saveParameter($this,
"active_id");
20 switch ($this->ctrl->getNextClass($this)) {
22 $this->
handleTabs(
'results_objective_oriented');
23 $cmd = $this->ctrl->getCmd() .
'Cmd';
31 $tableGUI->initFilter();
32 $tableGUI->resetOffset();
33 $tableGUI->writeFilterToSession();
40 $tableGUI->initFilter();
41 $tableGUI->resetOffset();
42 $tableGUI->resetFilter();
48 $testSession = $this->testSessionFactory->getSession();
50 if (!$this->
object->getShowPassDetails()) {
51 $executable = $this->
object->isExecutable($testSession, $testSession->getUserId());
53 if ($executable[
"executable"]) {
54 $this->ctrl->redirectByClass(
"ilobjtestgui",
"infoScreen");
58 $this->tabs->setBackTarget(
59 $this->lng->txt(
'tst_results_back_introduction'),
60 $this->ctrl->getLinkTargetByClass(
'ilobjtestgui',
'participants')
65 require_once
'Services/PDFGeneration/classes/class.ilPDFGeneration.php';
70 $this->ctrl->setParameter($this,
'pdf',
'1');
71 $toolbar->setPdfExportLinkTarget($this->ctrl->getLinkTarget($this,
'showVirtualPass'));
72 $this->ctrl->setParameter($this,
'pdf',
'');
75 $virtualSequence = $this->service->buildVirtualSequence($testSession);
76 $userResults = $this->service->getVirtualSequenceUserResults($virtualSequence);
78 require_once
'Modules/Course/classes/Objectives/class.ilLOTestQuestionAdapter.php';
82 $objectivesList->loadObjectivesTitles();
84 require_once
'Modules/Test/classes/class.ilTestResultHeaderLabelBuilder.php';
87 $testResultHeaderLabelBuilder->setObjectiveOrientedContainerId($testSession->getObjectiveOrientedContainerId());
88 $testResultHeaderLabelBuilder->setUserId($testSession->getUserId());
89 $testResultHeaderLabelBuilder->setTestObjId($this->
object->getId());
90 $testResultHeaderLabelBuilder->setTestRefId($this->
object->getRefId());
91 $testResultHeaderLabelBuilder->initObjectiveOrientedMode();
93 $tpl =
new ilTemplate(
'tpl.il_as_tst_virtual_pass_details.html',
false,
false,
'Modules/Test');
95 $command_solution_details =
"";
96 if ($this->
object->getShowSolutionDetails()) {
97 $command_solution_details =
"outCorrectSolution";
100 $questionAnchorNav = $listOfAnswers = $this->
object->canShowSolutionPrintview();
102 if ($listOfAnswers) {
105 $testSession->getActiveId(),
107 $this->
object->getShowSolutionListComparison(),
113 $testResultHeaderLabelBuilder
115 $tpl->setVariable(
"LIST_OF_ANSWERS", $list_of_answers);
118 foreach ($objectivesList->getObjectives() as $loId => $loTitle) {
119 $userResultsForLO = $objectivesList->filterResultsByObjective($userResults, $loId);
123 $testSession->getActiveId(),
127 $command_solution_details,
132 $overviewTableGUI->setTitle($testResultHeaderLabelBuilder->getVirtualPassDetailsHeaderLabel(
133 $objectivesList->getObjectiveTitleById($loId)
136 require_once
'Modules/Test/classes/class.ilTestLearningObjectivesStatusGUI.php';
139 $loStatus->setUsrId($testSession->getUserId());
140 $lostatus = $loStatus->getHTML($loId);
142 $tpl->setCurrentBlock(
'pass_details');
143 $tpl->setVariable(
"PASS_DETAILS", $overviewTableGUI->getHTML());
144 $tpl->setVariable(
"LO_STATUS", $lostatus);
145 $tpl->parseCurrentBlock();
showVirtualPassSetTableFilterCmd()
getObjectiveOrientedContainer()
buildUserTestResultsToolbarGUI()
buildQuestionRelatedObjectivesList(ilLOTestQuestionAdapter $objectivesAdapter, ilTestQuestionSequence $testSequence)
static getInstance(ilTestSession $a_test_session)
getPassDetailsOverviewTableGUI($result_array, $active_id, $pass, $targetGUI, $targetCMD, $questionDetailsCMD, $questionAnchorNav, ilTestQuestionRelatedObjectivesList $objectivesList=null, $multipleObjectivesInvolved=true)
populateContent($content)
special template class to simplify handling of ITX/PEAR
showVirtualPassResetTableFilterCmd()
static prepareGeneration()
Prepare the PDF generation This initializes the purpose for MathJax rendering It has to be called bef...
buildPassDetailsOverviewTableGUI($targetGUI, $targetCMD)
Create new PHPExcel object
obj_idprivate
Service GUI class for tests.
getPassListOfAnswers(&$result_array, $active_id, $pass, $show_solutions=false, $only_answered_questions=false, $show_question_only=false, $show_reached_points=false, $anchorNav=false, ilTestQuestionRelatedObjectivesList $objectivesList=null, ilTestResultHeaderLabelBuilder $testResultHeaderLabelBuilder=null)
Returns the list of answers of a users test pass.