ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilExerciseHandlerGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
15{
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 }
27
31 function &executeCommand()
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 }
61
62}
63?>
global $tpl
Definition: ilias.php:8
$_GET["client_id"]
Handles user interface for exercises.
Class ilObjExerciseGUI.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40
$cmd
Definition: sahs_server.php:35