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.

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

References $questionSetConfig, and $testObj.

Member Function Documentation

◆ executeCommand()

ilTestDashboardGUI::executeCommand ( )

Execute Command.

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

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';
165 $DIC->ctrl()->forwardCommand($gui);
166 break;
167 }
168 }
static accessViolationRedirect()
global $DIC
Definition: saml.php:7

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.

+ 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.

73 {
75 }

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().

+ Here is the caller graph for this function:

◆ getTestObj()

ilTestDashboardGUI::getTestObj ( )
Returns
ilObjTest

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

57 {
58 return $this->testObj;
59 }

References $testObj.

Referenced by executeCommand().

+ 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().

+ 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.

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

References $objectiveParent.

◆ setQuestionSetConfig()

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

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

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

References $questionSetConfig.

◆ setTestAccess()

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

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

97 {
98 $this->testAccess = $testAccess;
99 }

References $testAccess.

◆ setTestObj()

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

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

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

References $testObj.

◆ setTestTabs()

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

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

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

References $testTabs.

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: