ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMyTestResultsGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
19 {
23  const EVALGUI_CMD_SHOW_PASS_OVERVIEW = 'outUserResultsOverview';
24 
28  protected $testObj;
29 
33  protected $testAccess;
34 
38  protected $testSession;
39 
43  protected $objectiveParent;
44 
48  public function getTestObj()
49  {
50  return $this->testObj;
51  }
52 
56  public function setTestObj($testObj)
57  {
58  $this->testObj = $testObj;
59  }
60 
64  public function getTestAccess()
65  {
66  return $this->testAccess;
67  }
68 
72  public function setTestAccess($testAccess)
73  {
74  $this->testAccess = $testAccess;
75  }
76 
80  public function getTestSession()
81  {
82  return $this->testSession;
83  }
84 
88  public function setTestSession($testSession)
89  {
90  $this->testSession = $testSession;
91  }
92 
96  public function getObjectiveParent()
97  {
99  }
100 
105  {
106  $this->objectiveParent = $objectiveParent;
107  }
108 
112  public function executeCommand()
113  {
114  global $DIC; /* @var ILIAS\DI\Container $DIC */
115 
116  if (!$DIC->ctrl()->getCmd()) {
117  $DIC->ctrl()->setCmd(self::EVALGUI_CMD_SHOW_PASS_OVERVIEW);
118  }
119 
120  switch ($DIC->ctrl()->getNextClass()) {
121  case "iltestevaluationgui":
122  require_once 'Modules/Test/classes/class.ilTestEvaluationGUI.php';
123  $gui = new ilTestEvaluationGUI($this->getTestObj());
124  $gui->setObjectiveOrientedContainer($this->getObjectiveParent());
125  $gui->setTestAccess($this->getTestAccess());
126  $DIC->ctrl()->forwardCommand($gui);
127  break;
128 
129  case 'ilassquestionpagegui':
130  require_once 'Modules/Test/classes/class.ilAssQuestionPageCommandForwarder.php';
131  $forwarder = new ilAssQuestionPageCommandForwarder();
132  $forwarder->setTestObj($this->getTestObj());
133  $forwarder->forward();
134  break;
135  }
136  }
137 }
setObjectiveParent($objectiveParent)
executeCommand()
Execute Command.
global $DIC
Definition: saml.php:7
const EVALGUI_CMD_SHOW_PASS_OVERVIEW
command constants
Output class for assessment test evaluation.