ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilGlossaryEditorGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilGlossaryEditorGUI:
+ Collaboration diagram for ilGlossaryEditorGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 

Protected Attributes

int $requested_ref_id
 
ILIAS Glossary Editing EditingGUIRequest $request
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilAccessHandler $access
 
ilNavigationHistory $nav_history
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning GUI class for Glossary Editor

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de @ilCtrl_Calls ilGlossaryEditorGUI: ilObjGlossaryGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilGlossaryEditorGUI::__construct ( )

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

34 {
35 global $DIC;
36
37 $this->lng = $DIC->language();
38 $this->access = $DIC->access();
39 $this->nav_history = $DIC["ilNavigationHistory"];
40 $ilCtrl = $DIC->ctrl();
41 $lng = $DIC->language();
42 $ilAccess = $DIC->access();
43 $ilNavigationHistory = $DIC["ilNavigationHistory"];
44
45 $this->request = $DIC->glossary()
46 ->internal()
47 ->gui()
48 ->editing()
49 ->request();
50
51 $this->requested_ref_id = $this->request->getRefId();
52
53 // initialisation stuff
54 $this->ctrl = $ilCtrl;
55 $lng->loadLanguageModule("content");
56
57 $DIC->globalScreen()->tool()->context()->claim()->repository();
58
59 // check write permission
60 if (!$ilAccess->checkAccess("write", "", $this->requested_ref_id) &&
61 !$ilAccess->checkAccess("edit_content", "", $this->requested_ref_id) &&
62 !$ilAccess->checkAccess("edit_permission", "", $this->requested_ref_id)) {
63 throw new ilPermissionException($lng->txt("permission_denied"));
64 }
65
66 $ilNavigationHistory->addItem(
67 $this->requested_ref_id,
68 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=" . $this->requested_ref_id,
69 "glo"
70 );
71 }
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
global $DIC
Definition: shib_login.php:26

References $DIC, $lng, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilGlossaryEditorGUI::executeCommand ( )

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

73 : void
74 {
75 $next_class = $this->ctrl->getNextClass($this);
76 if ($next_class == "") {
77 $this->ctrl->saveParameterByClass(ilObjGlossaryGUI::class, "ref_id");
78 $this->ctrl->redirectByClass(ilObjGlossaryGUI::class);
79 }
80
81 switch ($next_class) {
82 case 'ilobjglossarygui':
83 default:
84 $glossary_gui = new ilObjGlossaryGUI(
85 "",
86 $this->requested_ref_id,
87 true,
88 false
89 );
90 $this->ctrl->forwardCommand($glossary_gui);
91 break;
92 }
93 }
GUI class for ilGlossary.

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilGlossaryEditorGUI::$access
protected

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

◆ $ctrl

ilCtrl ilGlossaryEditorGUI::$ctrl
protected

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

◆ $lng

ilLanguage ilGlossaryEditorGUI::$lng
protected

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

Referenced by __construct().

◆ $nav_history

ilNavigationHistory ilGlossaryEditorGUI::$nav_history
protected

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

◆ $request

ILIAS Glossary Editing EditingGUIRequest ilGlossaryEditorGUI::$request
protected

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

◆ $requested_ref_id

int ilGlossaryEditorGUI::$requested_ref_id
protected

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


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