ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilHTLMEditorGUI Class Reference

GUI class for learning module editor. More...

+ Collaboration diagram for ilHTLMEditorGUI:

Public Member Functions

 ilHTLMEditorGUI ()
 Constructor public.
executeCommand ()
 execute command

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

& ilHTLMEditorGUI::executeCommand ( )

execute command

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

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

{
global $tpl, $ilCtrl,$ilAccess, $ilNavigationHistory;
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd("");
// add entry to navigation history
if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$ilNavigationHistory->addItem($_GET["ref_id"],
"repository.php?cmd=infoScreen&ref_id=".$_GET["ref_id"], "lm");
}
switch($next_class)
{
case "ilobjfilebasedlmgui":
require_once ("./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php");
$fblm_gui =& new ilObjFileBasedLMGUI("", $_GET["ref_id"],true, false);
$ilCtrl->forwardCommand($fblm_gui);
$tpl->show();
break;
default:
$this->ctrl->setCmdClass("ilobjfilebasedlmgui");
$this->ctrl->setCmd("");
return $this->executeCommand();
break;
}
}
ilHTLMEditorGUI::ilHTLMEditorGUI ( )

Constructor public.

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

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

{
$rbacsystem, $ilLocator;
$lng->loadLanguageModule("content");
// check write permission
if (!$rbacsystem->checkAccess("write", $_GET["ref_id"]))
{
$ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
}
$this->ctrl =& $ilCtrl;
//$this->ctrl->saveParameter($this, array("ref_id", "obj_id"));
$this->ctrl->saveParameter($this, array("ref_id"));
// initiate variables
$this->ilias =& $ilias;
$this->tpl =& $tpl;
$this->lng =& $lng;
$this->objDefinition =& $objDefinition;
$this->ref_id = $_GET["ref_id"];
}

Field Documentation

ilHTLMEditorGUI::$ilias

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

Referenced by ilHTLMEditorGUI().

ilHTLMEditorGUI::$lng

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

Referenced by ilHTLMEditorGUI().

ilHTLMEditorGUI::$objDefinition

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

Referenced by ilHTLMEditorGUI().

ilHTLMEditorGUI::$ref_id

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

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: