ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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$

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.

References $DIC, and $ilCtrl.

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 $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18

Member Function Documentation

◆ executeCommand()

ilExerciseHandlerGUI::executeCommand ( )

execute command

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

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

62  {
63  $lng = $this->lng;
64  $ilAccess = $this->access;
65  $tpl = $this->tpl;
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.

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: