ILIAS  release_8 Revision v8.24
class.ilMyTestResultsGUI.php
Go to the documentation of this file.
1<?php
2
33{
34 public const EVALGUI_CMD_SHOW_PASS_OVERVIEW = 'outUserResultsOverview';
35
36 protected ?ilObjTest $testObj = null;
37 protected ?ilTestAccess $testAccess = null;
38 protected ?ilTestSession $testSession = null;
40
41 public function getTestObj(): ?ilObjTest
42 {
43 return $this->testObj;
44 }
45
46 public function setTestObj(ilObjTest $testObj): void
47 {
48 $this->testObj = $testObj;
49 }
50
51 public function getTestAccess(): ?ilTestAccess
52 {
53 return $this->testAccess;
54 }
55
56 public function setTestAccess(ilTestAccess $testAccess): void
57 {
58 $this->testAccess = $testAccess;
59 }
60
61 public function getTestSession(): ?ilTestSession
62 {
63 return $this->testSession;
64 }
65
67 {
68 $this->testSession = $testSession;
69 }
70
72 {
74 }
75
77 {
78 $this->objectiveParent = $objectiveParent;
79 }
80
81 public function executeCommand(): void
82 {
83 global $DIC; /* @var ILIAS\DI\Container $DIC */
84
85 if (!$DIC->ctrl()->getCmd()) {
86 $DIC->ctrl()->setCmd(self::EVALGUI_CMD_SHOW_PASS_OVERVIEW);
87 }
88
89 switch ($DIC->ctrl()->getNextClass()) {
90 case "iltestevaluationgui":
91 require_once 'Modules/Test/classes/class.ilTestEvaluationGUI.php';
92 $gui = new ilTestEvaluationGUI($this->getTestObj());
93 $gui->setObjectiveOrientedContainer($this->getObjectiveParent());
94 $gui->setTestAccess($this->getTestAccess());
95 $DIC->ctrl()->forwardCommand($gui);
96 break;
97
98 case 'ilassquestionpagegui':
99 require_once 'Modules/Test/classes/class.ilAssQuestionPageCommandForwarder.php';
100 $forwarder = new ilAssQuestionPageCommandForwarder();
101 $forwarder->setTestObj($this->getTestObj());
102 $forwarder->forward();
103 break;
104 }
105 }
106}
setTestObj(ilObjTest $testObj)
setObjectiveParent(ilTestObjectiveOrientedContainer $objectiveParent)
ilTestObjectiveOrientedContainer $objectiveParent
setTestSession(ilTestSession $testSession)
setTestAccess(ilTestAccess $testAccess)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28