GUI class for html lm presentation. More...
Public Member Functions | |
| ilHTLMPresentationGUI () | |
| Constructor public. | |
| & | executeCommand () |
| execute command | |
Data Fields | |
| $ilias | |
| $tpl | |
| $lng | |
| $objDefinition | |
| $ref_id | |
GUI class for html lm presentation.
ilHTLMPresentationGUI: ilObjFileBasedLMGUI
Definition at line 36 of file class.ilHTLMPresentationGUI.php.
| & 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.
{
global $ilias, $tpl, $lng, $objDefinition, $ilCtrl,
$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"];
}
| 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().
1.7.1