ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestDashboardGUI Class Reference
+ Collaboration diagram for ilTestDashboardGUI:

Public Member Functions

 __construct (protected ilObjTest $test_obj, protected ilObjUser $user, protected ilAccess $access, protected ilGlobalTemplateInterface $main_tpl, protected UIFactory $ui_factory, protected UIRenderer $ui_renderer, protected ilLanguage $lng, protected ilDBInterface $db, protected ilCtrl $ctrl, protected ilTabsGUI $tabs, protected ilToolbarGUI $toolbar, protected ilTestQuestionSetConfig $question_set_config, protected InternalRequestService $testrequest)
 
 getTestObj ()
 
 setTestObj (ilObjTest $test_obj)
 
 getQuestionSetConfig ()
 
 setQuestionSetConfig (ilTestQuestionSetConfig $question_set_config)
 
 getTestAccess ()
 
 setTestAccess (ilTestAccess $test_access)
 
 getTestTabs ()
 
 setTestTabs (ilTestTabsManager $tabs_manager)
 
 getObjectiveParent ()
 
 setObjectiveParent (ilTestObjectiveOrientedContainer $objective_parent)
 
 executeCommand ()
 

Protected Attributes

ilTestAccess $test_access
 
ilTestTabsManager $tabs_manager
 
ilTestObjectiveOrientedContainer $objective_parent
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilTestDashboardGUI::__construct ( protected ilObjTest  $test_obj,
protected ilObjUser  $user,
protected ilAccess  $access,
protected ilGlobalTemplateInterface  $main_tpl,
protected UIFactory  $ui_factory,
protected UIRenderer  $ui_renderer,
protected ilLanguage  $lng,
protected ilDBInterface  $db,
protected ilCtrl  $ctrl,
protected ilTabsGUI  $tabs,
protected ilToolbarGUI  $toolbar,
protected ilTestQuestionSetConfig  $question_set_config,
protected InternalRequestService  $testrequest 
)

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

57  {
58  }

Member Function Documentation

◆ executeCommand()

ilTestDashboardGUI::executeCommand ( )

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

References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), getObjectiveParent(), getQuestionSetConfig(), getTestAccess(), getTestObj(), getTestTabs(), ILIAS\Repository\lng(), ilTestTabsManager\SUBTAB_ID_FIXED_PARTICIPANTS, ilTestTabsManager\SUBTAB_ID_TIME_EXTENSION, ilTestTabsManager\TAB_ID_EXAM_DASHBOARD, ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().

110  : void
111  {
112  if (!$this->getTestAccess()->checkManageParticipantsAccess()) {
113  ilObjTestGUI::accessViolationRedirect();
114  }
115 
117  $this->getTestTabs()->getDashboardSubTabs();
118 
119  switch ($this->ctrl->getNextClass()) {
120  case 'iltestparticipantsgui':
122 
123  $gui = new ilTestParticipantsGUI(
124  $this->getTestObj(),
125  $this->getQuestionSetConfig(),
126  $this->access,
127  $this->main_tpl,
128  $this->ui_factory,
129  $this->ui_renderer,
130  $this->lng,
131  $this->ctrl,
132  $this->db,
133  $this->tabs,
134  $this->toolbar,
135  $this->testrequest
136  );
137  $gui->setTestAccess($this->getTestAccess());
138  $gui->setObjectiveParent($this->getObjectiveParent());
139  $this->ctrl->forwardCommand($gui);
140  break;
141 
142  case 'iltestparticipantstimeextensiongui':
144 
146  $this->getTestObj(),
147  $this->user,
148  $this->ctrl,
149  $this->lng,
150  $this->db,
151  $this->main_tpl,
153  );
154  $this->ctrl->forwardCommand($gui);
155  break;
156  }
157  }
+ Here is the call graph for this function:

◆ getObjectiveParent()

ilTestDashboardGUI::getObjectiveParent ( )

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

References $objective_parent.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ getQuestionSetConfig()

ilTestDashboardGUI::getQuestionSetConfig ( )

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

Referenced by executeCommand().

71  {
72  return $this->question_set_config;
73  }
+ Here is the caller graph for this function:

◆ getTestAccess()

ilTestDashboardGUI::getTestAccess ( )

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

References $test_access.

Referenced by executeCommand().

80  : ilTestAccess
81  {
82  return $this->test_access;
83  }
+ Here is the caller graph for this function:

◆ getTestObj()

ilTestDashboardGUI::getTestObj ( )

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

Referenced by executeCommand().

60  : ilObjTest
61  {
62  return $this->test_obj;
63  }
+ Here is the caller graph for this function:

◆ getTestTabs()

ilTestDashboardGUI::getTestTabs ( )

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

References $tabs_manager.

Referenced by executeCommand().

+ Here is the caller graph for this function:

◆ setObjectiveParent()

ilTestDashboardGUI::setObjectiveParent ( ilTestObjectiveOrientedContainer  $objective_parent)

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

References $objective_parent.

106  {
107  $this->objective_parent = $objective_parent;
108  }
ilTestObjectiveOrientedContainer $objective_parent

◆ setQuestionSetConfig()

ilTestDashboardGUI::setQuestionSetConfig ( ilTestQuestionSetConfig  $question_set_config)

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

75  : void
76  {
77  $this->question_set_config = $question_set_config;
78  }

◆ setTestAccess()

ilTestDashboardGUI::setTestAccess ( ilTestAccess  $test_access)

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

References $test_access.

Referenced by ilObjTestGUI\executeCommand().

85  : void
86  {
87  $this->test_access = $test_access;
88  }
+ Here is the caller graph for this function:

◆ setTestObj()

ilTestDashboardGUI::setTestObj ( ilObjTest  $test_obj)

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

66  {
67  $this->test_obj = $test_obj;
68  }

◆ setTestTabs()

ilTestDashboardGUI::setTestTabs ( ilTestTabsManager  $tabs_manager)

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

References $tabs_manager.

95  : void
96  {
97  $this->tabs_manager = $tabs_manager;
98  }
ilTestTabsManager $tabs_manager

Field Documentation

◆ $objective_parent

ilTestObjectiveOrientedContainer ilTestDashboardGUI::$objective_parent
protected

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

Referenced by getObjectiveParent(), and setObjectiveParent().

◆ $tabs_manager

ilTestTabsManager ilTestDashboardGUI::$tabs_manager
protected

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

Referenced by getTestTabs(), and setTestTabs().

◆ $test_access

ilTestAccess ilTestDashboardGUI::$test_access
protected

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

Referenced by getTestAccess(), and setTestAccess().


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