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

Class ilGlossaryEditorGUI. More...

+ Collaboration diagram for ilGlossaryEditorGUI:

Public Member Functions

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

Detailed Description

Class ilGlossaryEditorGUI.

GUI class for Glossary Editor

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

ilGlossaryEditorGUI: ilObjGlossaryGUI

Definition at line 17 of file class.ilGlossaryEditorGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilGlossaryEditorGUI::__construct ( )

Definition at line 19 of file class.ilGlossaryEditorGUI.php.

References $_GET, $ilCtrl, and $lng.

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  !$ilAccess->checkAccess("edit_content", "", $_GET["ref_id"]))
30  {
31  $ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
32  }
33 
34  $ilNavigationHistory->addItem($_GET["ref_id"],
35  "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$_GET["ref_id"],
36  "glo");
37 
38  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:17

Member Function Documentation

◆ executeCommand()

ilGlossaryEditorGUI::executeCommand ( )

execute command

Definition at line 43 of file class.ilGlossaryEditorGUI.php.

References $_GET, $cmd, and $lng.

44  {
45  global $lng, $ilAccess;
46 
47  $cmd = $this->ctrl->getCmd();
48  $next_class = $this->ctrl->getNextClass($this);
49  if ($next_class == "")
50  {
51  $this->ctrl->setCmdClass("ilobjglossarygui");
52  $this->ctrl->setCmd("");
53  }
54 
55  switch ($next_class)
56  {
57  case 'ilobjglossarygui':
58  default:
59  require_once "./Modules/Glossary/classes/class.ilObjGlossaryGUI.php";
60  $glossary_gui = new ilObjGlossaryGUI("", $_GET["ref_id"], true, false);
61  $this->ctrl->forwardCommand($glossary_gui);
62  break;
63  }
64  }
Class ilGlossaryGUI.
$_GET["client_id"]
$cmd
Definition: sahs_server.php:35
global $lng
Definition: privfeed.php:17

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