ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilGlossaryEditorGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
18 {
20  {
21  global $ilCtrl, $lng, $ilAccess, $ilias, $ilNavigationHistory;
22 
23  // initialisation stuff
24  $this->ctrl =& $ilCtrl;
25  $lng->loadLanguageModule("content");
26 
27  // check write permission
28  if (!$ilAccess->checkAccess("write", "", $_GET["ref_id"]))
29  {
30  $ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
31  }
32 
33  $ilNavigationHistory->addItem($_GET["ref_id"],
34  "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$_GET["ref_id"],
35  "glo");
36 
37  }
38 
42  function &executeCommand()
43  {
44  global $lng, $ilAccess;
45 
46  $cmd = $this->ctrl->getCmd();
47  $next_class = $this->ctrl->getNextClass($this);
48  if ($next_class == "")
49  {
50  $this->ctrl->setCmdClass("ilobjglossarygui");
51  $this->ctrl->setCmd("");
52  }
53 
54  switch ($next_class)
55  {
56  case 'ilobjglossarygui':
57  default:
58  require_once "./Modules/Glossary/classes/class.ilObjGlossaryGUI.php";
59  $glossary_gui =& new ilObjGlossaryGUI("", $_GET["ref_id"], true, false);
60  $this->ctrl->forwardCommand($glossary_gui);
61  break;
62  }
63  }
64 
65 }