ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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

ilExerciseHandlerGUI: ilObjExerciseGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilExerciseHandlerGUI::__construct ( )

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

References $DIC.

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

Member Function Documentation

◆ executeCommand()

ilExerciseHandlerGUI::executeCommand ( )

execute command

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

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

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

Field Documentation

◆ $access

ilExerciseHandlerGUI::$access
protected

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

Referenced by executeCommand().

◆ $ctrl

ilExerciseHandlerGUI::$ctrl
protected

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

◆ $lng

ilExerciseHandlerGUI::$lng
protected

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

Referenced by executeCommand().

◆ $nav_history

ilExerciseHandlerGUI::$nav_history
protected

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

Referenced by executeCommand().

◆ $tpl

ilExerciseHandlerGUI::$tpl
protected

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

Referenced by executeCommand().


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