ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 $DIC->globalScreen()->tool()->context()->claim()->repository();
63
64 // check write permission
65 if (!$ilAccess->checkAccess("write", "", $_GET["ref_id"]) &&
66 !$ilAccess->checkAccess("edit_content", "", $_GET["ref_id"])) {
67 $ilErr->raiseError($lng->txt("permission_denied"), $ilErr->MESSAGE);
68 }
69
70 $ilNavigationHistory->addItem(
71 $_GET["ref_id"],
72 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=" . $_GET["ref_id"],
73 "glo"
74 );
75 }
$_GET["client_id"]
error($a_errmsg)
set error message @access public
global $ilCtrl
Definition: ilias.php:18
$ilErr
Definition: raiseError.php:18
$DIC
Definition: xapitoken.php:46

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 80 of file class.ilGlossaryEditorGUI.php.

81 {
83 $ilAccess = $this->access;
84
85 $cmd = $this->ctrl->getCmd();
86 $next_class = $this->ctrl->getNextClass($this);
87 if ($next_class == "") {
88 $this->ctrl->setCmdClass("ilobjglossarygui");
89 $this->ctrl->setCmd("");
90 }
91
92 switch ($next_class) {
93 case 'ilobjglossarygui':
94 default:
95 $glossary_gui = new ilObjGlossaryGUI("", $_GET["ref_id"], true, false);
96 $this->ctrl->forwardCommand($glossary_gui);
97 break;
98 }
99 }
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: