ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilExerciseHandlerGUI Class Reference

Handles user interface for exercises. More...

+ Collaboration diagram for ilExerciseHandlerGUI:

Public Member Functions

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

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 16 of file class.ilExerciseHandlerGUI.php.

References $ilCtrl.

17  {
18  global $ilCtrl;
19 
20  // initialisation stuff
21  $this->ctrl = $ilCtrl;
22 
23  //$ilNavigationHistory->addItem($_GET["ref_id"],
24  // "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$_GET["ref_id"]);
25 
26  }
global $ilCtrl
Definition: ilias.php:18

Member Function Documentation

◆ executeCommand()

ilExerciseHandlerGUI::executeCommand ( )

execute command

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

References $_GET, $cmd, $lng, and $tpl.

32  {
33  global $lng, $ilAccess, $tpl, $ilNavigationHistory;
34 
35  $cmd = $this->ctrl->getCmd();
36  $next_class = $this->ctrl->getNextClass($this);
37  if ($next_class == "")
38  {
39  $this->ctrl->setCmdClass("ilobjexercisegui");
40  $next_class = $this->ctrl->getNextClass($this);
41  }
42 
43  // add entry to navigation history
44  if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
45  {
46  $ilNavigationHistory->addItem($_GET["ref_id"],
47  "ilias.php?baseClass=ilExerciseHandlerGUI&cmd=showOverview&ref_id=".$_GET["ref_id"], "exc");
48  }
49 
50  switch ($next_class)
51  {
52  case 'ilobjexercisegui':
53  require_once "./Modules/Exercise/classes/class.ilObjExerciseGUI.php";
54  $ex_gui = new ilObjExerciseGUI("", (int) $_GET["ref_id"], true, false);
55  $this->ctrl->forwardCommand($ex_gui);
56  break;
57  }
58 
59  $tpl->show();
60  }
$_GET["client_id"]
Class ilObjExerciseGUI.
$cmd
Definition: sahs_server.php:35
global $tpl
Definition: ilias.php:8
global $lng
Definition: privfeed.php:17

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