ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilTestDashboardGUI Class Reference
+ Collaboration diagram for ilTestDashboardGUI:

Public Member Functions

 __construct (ilObjTest $testObj, ilTestQuestionSetConfig $questionSetConfig)
 ilTestDashboardGUI constructor. More...
 
 getTestObj ()
 
 setTestObj ($testObj)
 
 getQuestionSetConfig ()
 
 setQuestionSetConfig ($questionSetConfig)
 
 getTestAccess ()
 
 setTestAccess ($testAccess)
 
 getTestTabs ()
 
 setTestTabs ($testTabs)
 
 getObjectiveParent ()
 
 setObjectiveParent (ilTestObjectiveOrientedContainer $objectiveParent)
 
 executeCommand ()
 Execute Command. More...
 

Protected Attributes

 $testObj
 
 $questionSetConfig
 
 $testAccess
 
 $testTabs
 
 $objectiveParent
 

Detailed Description

Definition at line 16 of file class.ilTestDashboardGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestDashboardGUI::__construct ( ilObjTest  $testObj,
ilTestQuestionSetConfig  $questionSetConfig 
)

ilTestDashboardGUI constructor.

Parameters
ilObjTest$testObj

Definition at line 47 of file class.ilTestDashboardGUI.php.

References $questionSetConfig, and $testObj.

48  {
49  $this->testObj = $testObj;
50  $this->questionSetConfig = $questionSetConfig;
51  }

Member Function Documentation

◆ executeCommand()

ilTestDashboardGUI::executeCommand ( )

Execute Command.

Definition at line 136 of file class.ilTestDashboardGUI.php.

References $DIC, ilObjTestGUI\accessViolationRedirect(), getObjectiveParent(), getQuestionSetConfig(), getTestAccess(), getTestObj(), getTestTabs(), ilTestTabsManager\SUBTAB_ID_FIXED_PARTICIPANTS, ilTestTabsManager\SUBTAB_ID_TIME_EXTENSION, and ilTestTabsManager\TAB_ID_EXAM_DASHBOARD.

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  }
global $DIC
Definition: saml.php:7
static accessViolationRedirect()
+ Here is the call graph for this function:

◆ getObjectiveParent()

ilTestDashboardGUI::getObjectiveParent ( )

◆ getQuestionSetConfig()

ilTestDashboardGUI::getQuestionSetConfig ( )
Returns
ilTestQuestionSetConfig

Definition at line 72 of file class.ilTestDashboardGUI.php.

References $questionSetConfig.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ getTestAccess()

ilTestDashboardGUI::getTestAccess ( )
Returns
ilTestAccess

Definition at line 88 of file class.ilTestDashboardGUI.php.

References $testAccess.

Referenced by executeCommand().

89  {
90  return $this->testAccess;
91  }
+ Here is the caller graph for this function:

◆ getTestObj()

ilTestDashboardGUI::getTestObj ( )
Returns
ilObjTest

Definition at line 56 of file class.ilTestDashboardGUI.php.

References $testObj.

Referenced by executeCommand().

57  {
58  return $this->testObj;
59  }
+ Here is the caller graph for this function:

◆ getTestTabs()

ilTestDashboardGUI::getTestTabs ( )
Returns
ilTestTabsManager

Definition at line 104 of file class.ilTestDashboardGUI.php.

References $testTabs.

Referenced by executeCommand().

105  {
106  return $this->testTabs;
107  }
+ Here is the caller graph for this function:

◆ setObjectiveParent()

ilTestDashboardGUI::setObjectiveParent ( ilTestObjectiveOrientedContainer  $objectiveParent)
Parameters
ilTestObjectiveOrientedContainer$objectiveParent

Definition at line 128 of file class.ilTestDashboardGUI.php.

References $objectiveParent.

129  {
130  $this->objectiveParent = $objectiveParent;
131  }

◆ setQuestionSetConfig()

ilTestDashboardGUI::setQuestionSetConfig (   $questionSetConfig)
Parameters
ilTestQuestionSetConfig$questionSetConfig

Definition at line 80 of file class.ilTestDashboardGUI.php.

References $questionSetConfig.

81  {
82  $this->questionSetConfig = $questionSetConfig;
83  }

◆ setTestAccess()

ilTestDashboardGUI::setTestAccess (   $testAccess)
Parameters
ilTestAccess$testAccess

Definition at line 96 of file class.ilTestDashboardGUI.php.

References $testAccess.

Referenced by ilObjTestGUI\executeCommand().

97  {
98  $this->testAccess = $testAccess;
99  }
+ Here is the caller graph for this function:

◆ setTestObj()

ilTestDashboardGUI::setTestObj (   $testObj)
Parameters
ilObjTest$testObj

Definition at line 64 of file class.ilTestDashboardGUI.php.

References $testObj.

65  {
66  $this->testObj = $testObj;
67  }

◆ setTestTabs()

ilTestDashboardGUI::setTestTabs (   $testTabs)
Parameters
ilTestTabsManager$testTabs

Definition at line 112 of file class.ilTestDashboardGUI.php.

References $testTabs.

113  {
114  $this->testTabs = $testTabs;
115  }

Field Documentation

◆ $objectiveParent

ilTestDashboardGUI::$objectiveParent
protected

Definition at line 41 of file class.ilTestDashboardGUI.php.

Referenced by getObjectiveParent(), and setObjectiveParent().

◆ $questionSetConfig

ilTestDashboardGUI::$questionSetConfig
protected

◆ $testAccess

ilTestDashboardGUI::$testAccess
protected

Definition at line 31 of file class.ilTestDashboardGUI.php.

Referenced by getTestAccess(), and setTestAccess().

◆ $testObj

ilTestDashboardGUI::$testObj
protected

Definition at line 21 of file class.ilTestDashboardGUI.php.

Referenced by __construct(), getTestObj(), and setTestObj().

◆ $testTabs

ilTestDashboardGUI::$testTabs
protected

Definition at line 36 of file class.ilTestDashboardGUI.php.

Referenced by getTestTabs(), and setTestTabs().


The documentation for this class was generated from the following file: