Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00037 class ilGlossaryEditorGUI
00038 {
00039 function ilGlossaryEditorGUI()
00040 {
00041 global $ilCtrl, $lng, $ilAccess, $ilias;
00042
00043
00044 $this->ctrl =& $ilCtrl;
00045 $lng->loadLanguageModule("content");
00046
00047
00048 if (!$ilAccess->checkAccess("write", "", $_GET["ref_id"]))
00049 {
00050 $ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
00051 }
00052 }
00053
00057 function &executeCommand()
00058 {
00059 global $lng, $ilAccess;
00060
00061 $cmd = $this->ctrl->getCmd();
00062 $next_class = $this->ctrl->getNextClass($this);
00063 if ($next_class == "")
00064 {
00065 $this->ctrl->setCmdClass("ilobjglossarygui");
00066 $this->ctrl->setCmd("");
00067 }
00068
00069 switch ($next_class)
00070 {
00071 case 'ilobjglossarygui':
00072 default:
00073 require_once "./content/classes/class.ilObjGlossaryGUI.php";
00074 $glossary_gui =& new ilObjGlossaryGUI("", $_GET["ref_id"], true, false);
00075 $this->ctrl->forwardCommand($glossary_gui);
00076 break;
00077 }
00078 }
00079
00080 }