ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilHTLMEditorGUI Class Reference

GUI class for learning module editor. More...

+ Collaboration diagram for ilHTLMEditorGUI:

Public Member Functions

 ilHTLMEditorGUI ()
 Constructor @access public. More...
 
executeCommand ()
 execute command More...
 

Data Fields

 $ilias
 
 $tpl
 
 $lng
 
 $objDefinition
 
 $ref_id
 

Detailed Description

GUI class for learning module editor.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

@ilCtrl_Calls ilHTLMEditorGUI: ilObjFileBasedLMGUI

Definition at line 36 of file class.ilHTLMEditorGUI.php.

Member Function Documentation

◆ executeCommand()

& ilHTLMEditorGUI::executeCommand ( )

execute command

Definition at line 82 of file class.ilHTLMEditorGUI.php.

83 {
84 global $tpl, $ilCtrl,$ilAccess, $ilNavigationHistory;
85
86 $next_class = $this->ctrl->getNextClass($this);
87 $cmd = $this->ctrl->getCmd("");
88
89 // add entry to navigation history
90 if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
91 {
92 $ilNavigationHistory->addItem($_GET["ref_id"],
93 $ilCtrl->getLinkTargetByClass("ilrepositorygui", "infoScreen"), "lm");
94 }
95
96 switch($next_class)
97 {
98 case "ilobjfilebasedlmgui":
99 require_once ("./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php");
100 $fblm_gui =& new ilObjFileBasedLMGUI("", $_GET["ref_id"],true, false);
101 $ilCtrl->forwardCommand($fblm_gui);
102 $tpl->show();
103 break;
104
105 default:
106 $this->ctrl->setCmdClass("ilobjfilebasedlmgui");
107 $this->ctrl->setCmd("");
108 return $this->executeCommand();
109 break;
110 }
111 }
$_GET["client_id"]
& executeCommand()
execute command
User Interface class for file based learning modules (HTML)
global $ilCtrl
Definition: ilias.php:18
$cmd
Definition: sahs_server.php:35

References $_GET, $cmd, $ilCtrl, $tpl, and executeCommand().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ilHTLMEditorGUI()

ilHTLMEditorGUI::ilHTLMEditorGUI ( )

Constructor @access public.

Definition at line 53 of file class.ilHTLMEditorGUI.php.

54 {
56 $rbacsystem, $ilLocator;
57
58 $lng->loadLanguageModule("content");
59
60 // check write permission
61 if (!$rbacsystem->checkAccess("write", $_GET["ref_id"]))
62 {
63 $ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
64 }
65
66 $this->ctrl =& $ilCtrl;
67
68 //$this->ctrl->saveParameter($this, array("ref_id", "obj_id"));
69 $this->ctrl->saveParameter($this, array("ref_id"));
70
71 // initiate variables
72 $this->tpl = $tpl;
73 $this->lng = $lng;
74 $this->objDefinition = $objDefinition;
75 $this->ref_id = $_GET["ref_id"];
76
77 }

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

Field Documentation

◆ $ilias

ilHTLMEditorGUI::$ilias

Definition at line 43 of file class.ilHTLMEditorGUI.php.

Referenced by ilHTLMEditorGUI().

◆ $lng

ilHTLMEditorGUI::$lng

Definition at line 45 of file class.ilHTLMEditorGUI.php.

Referenced by ilHTLMEditorGUI().

◆ $objDefinition

ilHTLMEditorGUI::$objDefinition

Definition at line 46 of file class.ilHTLMEditorGUI.php.

Referenced by ilHTLMEditorGUI().

◆ $ref_id

ilHTLMEditorGUI::$ref_id

Definition at line 47 of file class.ilHTLMEditorGUI.php.

◆ $tpl

ilHTLMEditorGUI::$tpl

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

Referenced by executeCommand(), and ilHTLMEditorGUI().


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