ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilHTLMEditorGUI Class Reference

GUI class for learning module editor. More...

+ Collaboration diagram for ilHTLMEditorGUI:

Public Member Functions

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

Data Fields

 $tpl
 
 $lng
 
 $objDefinition
 
 $ref_id
 

Protected Attributes

 $ctrl
 
 $rbacsystem
 
 $error
 
 $access
 
 $nav_history
 

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.

Constructor & Destructor Documentation

◆ __construct()

ilHTLMEditorGUI::__construct ( )

Constructor @access public.

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

73 {
74 global $DIC;
75
76 $this->rbacsystem = $DIC->rbac()->system();
77 $this->error = $DIC["ilErr"];
78 $this->access = $DIC->access();
79 $this->nav_history = $DIC["ilNavigationHistory"];
80 $tpl = $DIC["tpl"];
81 $lng = $DIC->language();
82 $objDefinition = $DIC["objDefinition"];
83 $ilCtrl = $DIC->ctrl();
84 $rbacsystem = $DIC->rbac()->system();
85 $ilErr = $DIC["ilErr"];
86
87 $lng->loadLanguageModule("content");
88
89 // check write permission
90 if (!$rbacsystem->checkAccess("write", $_GET["ref_id"])) {
91 $ilErr->raiseError($lng->txt("permission_denied"), $ilErr->MESSAGE);
92 }
93
94 $this->ctrl = $ilCtrl;
95
96 //$this->ctrl->saveParameter($this, array("ref_id", "obj_id"));
97 $this->ctrl->saveParameter($this, array("ref_id"));
98
99 // initiate variables
100 $this->tpl = $tpl;
101 $this->lng = $lng;
102 $this->objDefinition = $objDefinition;
103 $this->ref_id = $_GET["ref_id"];
104 }
$_GET["client_id"]
error($a_errmsg)
set error message @access public
global $ilCtrl
Definition: ilias.php:18
global $ilErr
Definition: raiseError.php:16
global $DIC
Definition: saml.php:7

References $_GET, $DIC, $ilCtrl, $ilErr, $lng, $objDefinition, $rbacsystem, $tpl, and error().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilHTLMEditorGUI::executeCommand ( )

execute command

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

110 {
113 $ilAccess = $this->access;
114 $ilNavigationHistory = $this->nav_history;
115
116 $next_class = $this->ctrl->getNextClass($this);
117 $cmd = $this->ctrl->getCmd("");
118
119 // add entry to navigation history
120 if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
121 $ilCtrl->setParameterByClass("ilobjfilebasedlmgui", "ref_id", $_GET["ref_id"]);
122 $ilNavigationHistory->addItem(
123 $_GET["ref_id"],
124 $ilCtrl->getLinkTargetByClass(array("ilrepositorygui", "ilobjfilebasedlmgui"), "infoScreen"),
125 "htlm"
126 );
127 }
128
129 switch ($next_class) {
130 case "ilobjfilebasedlmgui":
131 require_once("./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php");
132 $fblm_gui = new ilObjFileBasedLMGUI("", $_GET["ref_id"], true, false);
133 $ilCtrl->forwardCommand($fblm_gui);
134 $tpl->show();
135 break;
136
137 default:
138 $this->ctrl->setCmdClass("ilobjfilebasedlmgui");
139 $this->ctrl->setCmd("");
140 return $this->executeCommand();
141 break;
142 }
143 }
executeCommand()
execute command
User Interface class for file based learning modules (HTML)

References $_GET, $access, $ctrl, $ilCtrl, $nav_history, $tpl, and executeCommand().

Referenced by executeCommand().

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

Field Documentation

◆ $access

ilHTLMEditorGUI::$access
protected

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

Referenced by executeCommand().

◆ $ctrl

ilHTLMEditorGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $error

ilHTLMEditorGUI::$error
protected

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

◆ $lng

ilHTLMEditorGUI::$lng

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

Referenced by __construct().

◆ $nav_history

ilHTLMEditorGUI::$nav_history
protected

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

Referenced by executeCommand().

◆ $objDefinition

ilHTLMEditorGUI::$objDefinition

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

Referenced by __construct().

◆ $rbacsystem

ilHTLMEditorGUI::$rbacsystem
protected

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

Referenced by __construct().

◆ $ref_id

ilHTLMEditorGUI::$ref_id

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

◆ $tpl

ilHTLMEditorGUI::$tpl

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

Referenced by __construct(), and executeCommand().


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