ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
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=infoScreen&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 ?>