ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMyTestSolutionsGUI.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  const EVALGUI_CMD_SHOW_PASS_OVERVIEW = 'outUserListOfAnswerPasses';
22 
26  protected $testObj;
27 
31  protected $testAccess;
32 
36  protected $objectiveParent;
37 
41  public function getTestObj()
42  {
43  return $this->testObj;
44  }
45 
49  public function setTestObj($testObj)
50  {
51  $this->testObj = $testObj;
52  }
53 
57  public function getTestAccess()
58  {
59  return $this->testAccess;
60  }
61 
65  public function setTestAccess($testAccess)
66  {
67  $this->testAccess = $testAccess;
68  }
69 
73  public function getObjectiveParent()
74  {
76  }
77 
82  {
83  $this->objectiveParent = $objectiveParent;
84  }
85 
89  public function executeCommand()
90  {
91  global $DIC; /* @var ILIAS\DI\Container $DIC */
92 
93  if (!$DIC->ctrl()->getCmd()) {
94  $DIC->ctrl()->setCmd(self::EVALGUI_CMD_SHOW_PASS_OVERVIEW);
95  }
96 
97  switch ($DIC->ctrl()->getNextClass()) {
98  case "iltestevaluationgui":
99  require_once 'Modules/Test/classes/class.ilTestEvaluationGUI.php';
100  $gui = new ilTestEvaluationGUI($this->getTestObj());
101  $gui->setObjectiveOrientedContainer($this->getObjectiveParent());
102  $gui->setTestAccess($this->getTestAccess());
103  $DIC->ctrl()->forwardCommand($gui);
104  break;
105 
106  case 'ilassquestionpagegui':
107  require_once 'Modules/Test/classes/class.ilAssQuestionPageCommandForwarder.php';
108  $forwarder = new ilAssQuestionPageCommandForwarder();
109  $forwarder->setTestObj($this->getTestObj());
110  $forwarder->forward();
111  break;
112  }
113  }
114 }
global $DIC
Definition: saml.php:7
Output class for assessment test evaluation.
setObjectiveParent($objectiveParent)
const EVALGUI_CMD_SHOW_PASS_OVERVIEW
command constants