ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilHTLMPresentationGUI Class Reference

GUI class for html lm presentation. More...

+ Collaboration diagram for ilHTLMPresentationGUI:

Public Member Functions

 ilHTLMPresentationGUI ()
 Constructor @access public. More...
 
executeCommand ()
 execute command More...
 

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$

@ilCtrl_Calls ilHTLMPresentationGUI: ilObjFileBasedLMGUI

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

Member Function Documentation

◆ executeCommand()

& ilHTLMPresentationGUI::executeCommand ( )

execute command

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

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

References $_GET, $cmd, $ilCtrl, $tpl, and executeCommand().

Referenced by executeCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ilHTLMPresentationGUI()

ilHTLMPresentationGUI::ilHTLMPresentationGUI ( )

Constructor @access public.

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

54 {
56 $rbacsystem, $ilAccess;
57
58 $lng->loadLanguageModule("content");
59
60 // check write permission
61 if (!$ilAccess->checkAccess("read", "", $_GET["ref_id"]))
62 {
63 $ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
64 }
65
66
67 $this->ctrl =& $ilCtrl;
68
69 //$this->ctrl->saveParameter($this, array("ref_id", "obj_id"));
70 $this->ctrl->saveParameter($this, array("ref_id"));
71
72 // initiate variables
73 $this->ilias =& $ilias;
74 $this->tpl =& $tpl;
75 $this->lng =& $lng;
76 $this->objDefinition =& $objDefinition;
77 $this->ref_id = $_GET["ref_id"];
78
79 }
redirection script todo: (a better solution should control the processing via a xml file)

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

Field Documentation

◆ $ilias

ilHTLMPresentationGUI::$ilias

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

Referenced by ilHTLMPresentationGUI().

◆ $lng

ilHTLMPresentationGUI::$lng

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

Referenced by ilHTLMPresentationGUI().

◆ $objDefinition

ilHTLMPresentationGUI::$objDefinition

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

Referenced by ilHTLMPresentationGUI().

◆ $ref_id

ilHTLMPresentationGUI::$ref_id

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

◆ $tpl

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: