ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilExerciseHandlerGUI Class Reference

Handles user interface for exercises. More...

+ Collaboration diagram for ilExerciseHandlerGUI:

Public Member Functions

 ilExerciseHandlerGUI ()
 
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$

@ilCtrl_Calls ilExerciseHandlerGUI: ilObjExerciseGUI

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

Member Function Documentation

◆ executeCommand()

& ilExerciseHandlerGUI::executeCommand ( )

execute command

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

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 }
global $tpl
Definition: ilias.php:8
$_GET["client_id"]
Class ilObjExerciseGUI.
global $lng
Definition: privfeed.php:40
$cmd
Definition: sahs_server.php:35

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

◆ ilExerciseHandlerGUI()

ilExerciseHandlerGUI::ilExerciseHandlerGUI ( )

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

17 {
18 global $ilCtrl, $lng, $ilAccess, $ilias, $ilNavigationHistory;
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

References $ilCtrl, and $lng.


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