ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilExerciseHandlerGUI Class Reference

Handles user interface for exercises. More...

+ Collaboration diagram for ilExerciseHandlerGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 execute command More...
 

Protected Attributes

 $ctrl
 
 $lng
 
 $access
 
 $tpl
 
 $nav_history
 

Detailed Description

Handles user interface for exercises.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

@ilCtrl_Calls ilExerciseHandlerGUI: ilObjExerciseGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilExerciseHandlerGUI::__construct ( )

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

42 {
43 global $DIC;
44
45 $this->lng = $DIC->language();
46 $this->access = $DIC->access();
47 $this->tpl = $DIC["tpl"];
48 $this->nav_history = $DIC["ilNavigationHistory"];
49 $ilCtrl = $DIC->ctrl();
50
51 // initialisation stuff
52 $this->ctrl = $ilCtrl;
53
54 //$ilNavigationHistory->addItem($_GET["ref_id"],
55 // "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$_GET["ref_id"]);
56 }
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7

References $DIC, and $ilCtrl.

Member Function Documentation

◆ executeCommand()

ilExerciseHandlerGUI::executeCommand ( )

execute command

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

62 {
64 $ilAccess = $this->access;
66 $ilNavigationHistory = $this->nav_history;
67
68 $cmd = $this->ctrl->getCmd();
69 $next_class = $this->ctrl->getNextClass($this);
70 if ($next_class == "") {
71 $this->ctrl->setCmdClass("ilobjexercisegui");
72 $next_class = $this->ctrl->getNextClass($this);
73 }
74
75 // add entry to navigation history
76 if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
77 $ilNavigationHistory->addItem(
78 $_GET["ref_id"],
79 "ilias.php?baseClass=ilExerciseHandlerGUI&cmd=showOverview&ref_id=" . $_GET["ref_id"],
80 "exc"
81 );
82 }
83
84 switch ($next_class) {
85 case 'ilobjexercisegui':
86 require_once "./Modules/Exercise/classes/class.ilObjExerciseGUI.php";
87 $ex_gui = new ilObjExerciseGUI("", (int) $_GET["ref_id"], true, false);
88 $this->ctrl->forwardCommand($ex_gui);
89 break;
90 }
91
92 $tpl->show();
93 }
$_GET["client_id"]
Class ilObjExerciseGUI.

References $_GET, $access, $lng, $nav_history, and $tpl.

Field Documentation

◆ $access

ilExerciseHandlerGUI::$access
protected

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

Referenced by executeCommand().

◆ $ctrl

ilExerciseHandlerGUI::$ctrl
protected

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

◆ $lng

ilExerciseHandlerGUI::$lng
protected

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

Referenced by executeCommand().

◆ $nav_history

ilExerciseHandlerGUI::$nav_history
protected

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

Referenced by executeCommand().

◆ $tpl

ilExerciseHandlerGUI::$tpl
protected

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

Referenced by executeCommand().


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