ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilExerciseHandlerGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilExerciseHandlerGUI:
+ Collaboration diagram for ilExerciseHandlerGUI:

Public Member Functions

 executeCommand ()
 

Protected Attributes

ilCtrl $ctrl
 
ilLanguage $lng
 
ilAccessHandler $access
 
ilGlobalTemplateInterface $tpl
 
ilNavigationHistory $nav_history
 
int $requested_ref_id
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Handles user interface for exercises

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de ilExerciseHandlerGUI: ilObjExerciseGUI

Definition at line 24 of file class.ilExerciseHandlerGUI.php.

Member Function Documentation

◆ executeCommand()

ilExerciseHandlerGUI::executeCommand ( )
Exceptions
ilCtrlException
ilExerciseException

Definition at line 52 of file class.ilExerciseHandlerGUI.php.

References $access, $nav_history, $tpl, ILIAS\Repository\ctrl(), and ILIAS\UICore\GlobalTemplate\printToStdout().

52  : void
53  {
54  $ilAccess = $this->access;
55  $tpl = $this->tpl;
56  $ilNavigationHistory = $this->nav_history;
57 
58  $next_class = $this->ctrl->getNextClass($this);
59  if ($next_class == "") {
60  $this->ctrl->saveParameterByClass(ilObjExerciseGUI::class, "ref_id");
61  $this->ctrl->redirectByClass(ilObjExerciseGUI::class, $this->ctrl->getCmd());
62  }
63 
64  // add entry to navigation history
65  if ($ilAccess->checkAccess("read", "", $this->requested_ref_id)) {
66  $ilNavigationHistory->addItem(
67  $this->requested_ref_id,
68  "ilias.php?baseClass=ilExerciseHandlerGUI&cmd=showOverview&ref_id=" . $this->requested_ref_id,
69  "exc"
70  );
71  }
72 
73  switch ($next_class) {
74  case 'ilobjexercisegui':
75  $ex_gui = new ilObjExerciseGUI("", $this->requested_ref_id, true);
76  $this->ctrl->forwardCommand($ex_gui);
77  break;
78  }
79 
81  }
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
ilGlobalTemplateInterface $tpl
ilNavigationHistory $nav_history
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilExerciseHandlerGUI::$access
protected

Definition at line 28 of file class.ilExerciseHandlerGUI.php.

Referenced by executeCommand().

◆ $ctrl

ilCtrl ilExerciseHandlerGUI::$ctrl
protected

Definition at line 26 of file class.ilExerciseHandlerGUI.php.

◆ $lng

ilLanguage ilExerciseHandlerGUI::$lng
protected

Definition at line 27 of file class.ilExerciseHandlerGUI.php.

◆ $nav_history

ilNavigationHistory ilExerciseHandlerGUI::$nav_history
protected

Definition at line 30 of file class.ilExerciseHandlerGUI.php.

Referenced by executeCommand().

◆ $requested_ref_id

int ilExerciseHandlerGUI::$requested_ref_id
protected

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

◆ $tpl

ilGlobalTemplateInterface ilExerciseHandlerGUI::$tpl
protected

Definition at line 29 of file class.ilExerciseHandlerGUI.php.

Referenced by executeCommand().


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