ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilHTLMEditorGUI Class Reference

GUI class for learning module editor. More...

+ Collaboration diagram for ilHTLMEditorGUI:

Public Member Functions

 ilHTLMEditorGUI ()
 Constructor 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$

ilHTLMEditorGUI: ilObjFileBasedLMGUI

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

Member Function Documentation

◆ executeCommand()

& ilHTLMEditorGUI::executeCommand ( )

execute command

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

References $_GET, $cmd, $ilCtrl, and $tpl.

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

◆ ilHTLMEditorGUI()

ilHTLMEditorGUI::ilHTLMEditorGUI ( )

Constructor public.

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

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

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->ilias =& $ilias;
73  $this->tpl =& $tpl;
74  $this->lng =& $lng;
75  $this->objDefinition =& $objDefinition;
76  $this->ref_id = $_GET["ref_id"];
77 
78  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
redirection script todo: (a better solution should control the processing via a xml file) ...

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: