ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilGlossaryEditorGUI Class Reference

Class ilGlossaryEditorGUI. More...

+ Collaboration diagram for ilGlossaryEditorGUI:

Public Member Functions

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

Protected Attributes

 $ctrl
 
 $lng
 
 $access
 
 $nav_history
 
 $error
 

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$

@ilCtrl_Calls ilGlossaryEditorGUI: ilObjGlossaryGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilGlossaryEditorGUI::__construct ( )

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

45 {
46 global $DIC;
47
48 $this->lng = $DIC->language();
49 $this->access = $DIC->access();
50 $this->nav_history = $DIC["ilNavigationHistory"];
51 $this->error = $DIC["ilErr"];
52 $ilCtrl = $DIC->ctrl();
53 $lng = $DIC->language();
54 $ilAccess = $DIC->access();
55 $ilNavigationHistory = $DIC["ilNavigationHistory"];
56 $ilErr = $DIC["ilErr"];
57
58 // initialisation stuff
59 $this->ctrl = $ilCtrl;
60 $lng->loadLanguageModule("content");
61
62 // check write permission
63 if (!$ilAccess->checkAccess("write", "", $_GET["ref_id"]) &&
64 !$ilAccess->checkAccess("edit_content", "", $_GET["ref_id"])) {
65 $ilErr->raiseError($lng->txt("permission_denied"), $ilErr->MESSAGE);
66 }
67
68 $ilNavigationHistory->addItem(
69 $_GET["ref_id"],
70 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=" . $_GET["ref_id"],
71 "glo"
72 );
73 }
$_GET["client_id"]
error($a_errmsg)
set error message @access public
global $ilCtrl
Definition: ilias.php:18
$ilErr
Definition: raiseError.php:18
global $DIC
Definition: saml.php:7

References $_GET, $DIC, $ilCtrl, $ilErr, $lng, and error().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilGlossaryEditorGUI::executeCommand ( )

execute command

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

79 {
81 $ilAccess = $this->access;
82
83 $cmd = $this->ctrl->getCmd();
84 $next_class = $this->ctrl->getNextClass($this);
85 if ($next_class == "") {
86 $this->ctrl->setCmdClass("ilobjglossarygui");
87 $this->ctrl->setCmd("");
88 }
89
90 switch ($next_class) {
91 case 'ilobjglossarygui':
92 default:
93 require_once "./Modules/Glossary/classes/class.ilObjGlossaryGUI.php";
94 $glossary_gui = new ilObjGlossaryGUI("", $_GET["ref_id"], true, false);
95 $this->ctrl->forwardCommand($glossary_gui);
96 break;
97 }
98 }
Class ilGlossaryGUI.

References $_GET, $access, and $lng.

Field Documentation

◆ $access

ilGlossaryEditorGUI::$access
protected

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

Referenced by executeCommand().

◆ $ctrl

ilGlossaryEditorGUI::$ctrl
protected

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

◆ $error

ilGlossaryEditorGUI::$error
protected

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

◆ $lng

ilGlossaryEditorGUI::$lng
protected

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

Referenced by __construct(), and executeCommand().

◆ $nav_history

ilGlossaryEditorGUI::$nav_history
protected

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


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