Public Member Functions

ilGlossaryEditorGUI Class Reference

Public Member Functions

 ilGlossaryEditorGUI ()
executeCommand ()
 execute command

Detailed Description

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


Member Function Documentation

& ilGlossaryEditorGUI::executeCommand (  ) 

execute command

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

References $_GET, $cmd, $glossary_gui, and $lng.

        {
                global $lng, $ilAccess;
                
                $cmd = $this->ctrl->getCmd();
                $next_class = $this->ctrl->getNextClass($this);
                if ($next_class == "")
                {
                        $this->ctrl->setCmdClass("ilobjglossarygui");
                        $this->ctrl->setCmd("");
                }

                switch ($next_class)
                {
                        case 'ilobjglossarygui':
                        default:
                                require_once "./content/classes/class.ilObjGlossaryGUI.php";
                                $glossary_gui =& new ilObjGlossaryGUI("", $_GET["ref_id"], true, false);
                                $this->ctrl->forwardCommand($glossary_gui);
                                break;
                }
        }

ilGlossaryEditorGUI::ilGlossaryEditorGUI (  ) 

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

References $_GET, $ilCtrl, $ilias, and $lng.

        {
                global $ilCtrl, $lng, $ilAccess, $ilias;
                
                // initialisation stuff
                $this->ctrl =&  $ilCtrl;
                $lng->loadLanguageModule("content");
                
                // check write permission
                if (!$ilAccess->checkAccess("write", "", $_GET["ref_id"]))
                {
                        $ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
                }
        }


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