ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilHTLMPresentationGUI Class Reference

GUI class for html lm presentation. More...

+ Collaboration diagram for ilHTLMPresentationGUI:

Public Member Functions

 ilHTLMPresentationGUI ()
 Constructor public.
executeCommand ()
 execute command

Data Fields

 $ilias
 $tpl
 $lng
 $objDefinition
 $ref_id

Detailed Description

GUI class for html lm presentation.

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

ilHTLMPresentationGUI: ilObjFileBasedLMGUI

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

Member Function Documentation

& ilHTLMPresentationGUI::executeCommand ( )

execute command

Definition at line 84 of file class.ilHTLMPresentationGUI.php.

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

{
global $tpl, $ilCtrl,$ilAccess, $ilNavigationHistory;
// 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");
}
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd("");
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("showLearningModule");
return $this->executeCommand();
break;
}
}
ilHTLMPresentationGUI::ilHTLMPresentationGUI ( )

Constructor public.

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

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

{
$rbacsystem, $ilAccess;
$lng->loadLanguageModule("content");
// check write permission
if (!$ilAccess->checkAccess("read", "", $_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

ilHTLMPresentationGUI::$ilias

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

Referenced by ilHTLMPresentationGUI().

ilHTLMPresentationGUI::$lng

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

Referenced by ilHTLMPresentationGUI().

ilHTLMPresentationGUI::$objDefinition

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

Referenced by ilHTLMPresentationGUI().

ilHTLMPresentationGUI::$ref_id

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

ilHTLMPresentationGUI::$tpl

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

Referenced by executeCommand(), and ilHTLMPresentationGUI().


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