ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
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 30 of file class.ilTestDashboardGUI.php.

Constructor & Destructor Documentation

◆ __construct()

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

ilTestDashboardGUI constructor.

Parameters
ilObjTest$testObj

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

References $questionSetConfig, and $testObj.

62  {
63  $this->testObj = $testObj;
64  $this->questionSetConfig = $questionSetConfig;
65  }

Member Function Documentation

◆ executeCommand()

ilTestDashboardGUI::executeCommand ( )

Execute Command.

Definition at line 150 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.

151  {
152  global $DIC; /* @var ILIAS\DI\Container $DIC */
153 
154  if (!$this->getTestAccess()->checkManageParticipantsAccess()) {
156  }
157 
159  $this->getTestTabs()->getDashboardSubTabs();
160 
161  switch ($DIC->ctrl()->getNextClass()) {
162  case 'iltestparticipantsgui':
163 
165 
166  require_once 'Modules/Test/classes/class.ilTestParticipantsGUI.php';
167  $gui = new ilTestParticipantsGUI($this->getTestObj(), $this->getQuestionSetConfig());
168  $gui->setTestAccess($this->getTestAccess());
169  $gui->setObjectiveParent($this->getObjectiveParent());
170  $DIC->ctrl()->forwardCommand($gui);
171  break;
172 
173  case 'iltestparticipantstimeextensiongui':
174 
176 
177  require_once 'Modules/Test/classes/class.ilTestParticipantsTimeExtensionGUI.php';
178  $gui = new ilTestParticipantsTimeExtensionGUI($this->getTestObj());
179  $DIC->ctrl()->forwardCommand($gui);
180  break;
181  }
182  }
static accessViolationRedirect()
global $DIC
Definition: feed.php:28
+ Here is the call graph for this function:

◆ getObjectiveParent()

ilTestDashboardGUI::getObjectiveParent ( )

◆ getQuestionSetConfig()

ilTestDashboardGUI::getQuestionSetConfig ( )
Returns
ilTestQuestionSetConfig

Definition at line 86 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 102 of file class.ilTestDashboardGUI.php.

References $testAccess.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ getTestObj()

ilTestDashboardGUI::getTestObj ( )
Returns
ilObjTest

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

References $testObj.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ getTestTabs()

ilTestDashboardGUI::getTestTabs ( )
Returns
ilTestTabsManager

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

References $testTabs.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ setObjectiveParent()

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

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

References $objectiveParent.

143  {
144  $this->objectiveParent = $objectiveParent;
145  }

◆ setQuestionSetConfig()

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

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

References $questionSetConfig.

95  {
96  $this->questionSetConfig = $questionSetConfig;
97  }

◆ setTestAccess()

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

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

References $testAccess.

Referenced by ilObjTestGUI\executeCommand().

111  {
112  $this->testAccess = $testAccess;
113  }
+ Here is the caller graph for this function:

◆ setTestObj()

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

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

References $testObj.

79  {
80  $this->testObj = $testObj;
81  }

◆ setTestTabs()

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

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

References $testTabs.

127  {
128  $this->testTabs = $testTabs;
129  }

Field Documentation

◆ $objectiveParent

ilTestDashboardGUI::$objectiveParent
protected

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

Referenced by getObjectiveParent(), and setObjectiveParent().

◆ $questionSetConfig

ilTestDashboardGUI::$questionSetConfig
protected

◆ $testAccess

ilTestDashboardGUI::$testAccess
protected

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

Referenced by getTestAccess(), and setTestAccess().

◆ $testObj

ilTestDashboardGUI::$testObj
protected

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

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

◆ $testTabs

ilTestDashboardGUI::$testTabs
protected

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

Referenced by getTestTabs(), and setTestTabs().


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