4 require_once
'./Modules/Test/classes/class.ilTestServiceGUI.php';
19 $this->ctrl->saveParameter($this,
"active_id");
21 switch ($this->ctrl->getNextClass($this)) {
22 case 'ilassquestionpagegui':
23 require_once
'Modules/Test/classes/class.ilAssQuestionPageCommandForwarder.php';
25 $forwarder->setTestObj($this->
object);
26 $forwarder->forward();
30 $cmd = $this->ctrl->getCmd(
'showVirtualPass') .
'Cmd';
38 $tableGUI->initFilter();
39 $tableGUI->resetOffset();
40 $tableGUI->writeFilterToSession();
47 $tableGUI->initFilter();
48 $tableGUI->resetOffset();
49 $tableGUI->resetFilter();
55 $testSession = $this->testSessionFactory->getSession();
57 if (!$this->object->getShowPassDetails()) {
58 $executable = $this->
object->isExecutable($testSession, $testSession->getUserId());
60 if ($executable[
"executable"]) {
61 $this->ctrl->redirectByClass(
"ilobjtestgui",
"infoScreen");
71 $this->ctrl->setParameter($this,
'pdf',
'1');
72 $toolbar->setPdfExportLinkTarget($this->ctrl->getLinkTarget($this,
'showVirtualPass'));
73 $this->ctrl->setParameter($this,
'pdf',
'');
76 $virtualSequence = $this->service->buildVirtualSequence($testSession);
77 $userResults = $this->service->getVirtualSequenceUserResults($virtualSequence);
79 require_once
'Modules/Course/classes/Objectives/class.ilLOTestQuestionAdapter.php';
83 $objectivesList->loadObjectivesTitles();
85 require_once
'Modules/Test/classes/class.ilTestResultHeaderLabelBuilder.php';
88 $testResultHeaderLabelBuilder->setObjectiveOrientedContainerId($testSession->getObjectiveOrientedContainerId());
89 $testResultHeaderLabelBuilder->setUserId($testSession->getUserId());
90 $testResultHeaderLabelBuilder->setTestObjId($this->object->getId());
91 $testResultHeaderLabelBuilder->setTestRefId($this->object->getRefId());
92 $testResultHeaderLabelBuilder->initObjectiveOrientedMode();
94 $tpl =
new ilTemplate(
'tpl.il_as_tst_virtual_pass_details.html',
false,
false,
'Modules/Test');
96 $command_solution_details =
"";
97 if ($this->object->getShowSolutionDetails()) {
98 $command_solution_details =
"outCorrectSolution";
101 $questionAnchorNav = $listOfAnswers = $this->
object->canShowSolutionPrintview();
103 if ($listOfAnswers) {
106 $testSession->getActiveId(),
108 $this->
object->getShowSolutionListComparison(),
114 $testResultHeaderLabelBuilder
116 $tpl->setVariable(
"LIST_OF_ANSWERS", $list_of_answers);
119 foreach ($objectivesList->getObjectives() as $loId => $loTitle) {
120 $userResultsForLO = $objectivesList->filterResultsByObjective($userResults, $loId);
124 $testSession->getActiveId(),
128 $command_solution_details,
133 $overviewTableGUI->setTitle($testResultHeaderLabelBuilder->getVirtualPassDetailsHeaderLabel(
134 $objectivesList->getObjectiveTitleById($loId)
137 require_once
'Modules/Test/classes/class.ilTestLearningObjectivesStatusGUI.php';
140 $loStatus->setUsrId($testSession->getUserId());
141 $lostatus = $loStatus->getHTML($loId);
143 $tpl->setCurrentBlock(
'pass_details');
144 $tpl->setVariable(
"PASS_DETAILS", $overviewTableGUI->getHTML());
145 $tpl->setVariable(
"LO_STATUS", $lostatus);
146 $tpl->parseCurrentBlock();
showVirtualPassSetTableFilterCmd()
getObjectiveOrientedContainer()
const PDF_USER_RESULT
PDF Purposes.
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()
buildPassDetailsOverviewTableGUI($targetGUI, $targetCMD)
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.
static prepareGenerationRequest($service, $purpose)
Prepare the content processing for a PDF generation request This function should be called as in a re...