ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilHTLMEditorGUI Class Reference

GUI class for learning module editor. More...

+ Collaboration diagram for ilHTLMEditorGUI:

Public Member Functions

 __construct ()
 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.

Constructor & Destructor Documentation

◆ __construct()

ilHTLMEditorGUI::__construct ( )

Constructor public.

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

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

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  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
Create styles array
The data for the language used.

Member Function Documentation

◆ executeCommand()

ilHTLMEditorGUI::executeCommand ( )

execute command

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

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

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  }
executeCommand()
execute command
$_GET["client_id"]
$cmd
Definition: sahs_server.php:35
global $ilCtrl
Definition: ilias.php:18
User Interface class for file based learning modules (HTML)

Field Documentation

◆ $ilias

ilHTLMEditorGUI::$ilias

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

Referenced by __construct().

◆ $lng

ilHTLMEditorGUI::$lng

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

Referenced by __construct().

◆ $objDefinition

ilHTLMEditorGUI::$objDefinition

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

Referenced by __construct().

◆ $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 __construct(), and executeCommand().


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