ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTestDashboardGUI.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 
17 {
21  protected $testObj;
22 
26  protected $questionSetConfig;
27 
31  protected $testAccess;
32 
36  protected $testTabs;
37 
41  protected $objectiveParent;
42 
48  {
49  $this->testObj = $testObj;
50  $this->questionSetConfig = $questionSetConfig;
51  }
52 
56  public function getTestObj()
57  {
58  return $this->testObj;
59  }
60 
64  public function setTestObj($testObj)
65  {
66  $this->testObj = $testObj;
67  }
68 
72  public function getQuestionSetConfig()
73  {
75  }
76 
81  {
82  $this->questionSetConfig = $questionSetConfig;
83  }
84 
88  public function getTestAccess()
89  {
90  return $this->testAccess;
91  }
92 
96  public function setTestAccess($testAccess)
97  {
98  $this->testAccess = $testAccess;
99  }
100 
104  public function getTestTabs()
105  {
106  return $this->testTabs;
107  }
108 
112  public function setTestTabs($testTabs)
113  {
114  $this->testTabs = $testTabs;
115  }
116 
121  {
122  return $this->objectiveParent;
123  }
124 
129  {
130  $this->objectiveParent = $objectiveParent;
131  }
132 
136  public function executeCommand()
137  {
138  global $DIC; /* @var ILIAS\DI\Container $DIC */
139 
140  if (!$this->getTestAccess()->checkManageParticipantsAccess()) {
142  }
143 
145  $this->getTestTabs()->getDashboardSubTabs();
146 
147  switch ($DIC->ctrl()->getNextClass()) {
148  case 'iltestparticipantsgui':
149 
151 
152  require_once 'Modules/Test/classes/class.ilTestParticipantsGUI.php';
153  $gui = new ilTestParticipantsGUI($this->getTestObj(), $this->getQuestionSetConfig());
154  $gui->setTestAccess($this->getTestAccess());
155  $gui->setObjectiveParent($this->getObjectiveParent());
156  $DIC->ctrl()->forwardCommand($gui);
157  break;
158 
159  case 'iltestparticipantstimeextensiongui':
160 
162 
163  require_once 'Modules/Test/classes/class.ilTestParticipantsTimeExtensionGUI.php';
164  $gui = new ilTestParticipantsTimeExtensionGUI($this->getTestObj());
165  $DIC->ctrl()->forwardCommand($gui);
166  break;
167  }
168  }
169 }
__construct(ilObjTest $testObj, ilTestQuestionSetConfig $questionSetConfig)
ilTestDashboardGUI constructor.
global $DIC
Definition: saml.php:7
setObjectiveParent(ilTestObjectiveOrientedContainer $objectiveParent)
static accessViolationRedirect()
setQuestionSetConfig($questionSetConfig)
executeCommand()
Execute Command.