ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilHTLMPresentationGUI Class Reference

GUI class for html lm presentation. More...

+ Collaboration diagram for ilHTLMPresentationGUI:

Public Member Functions

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

Data Fields

 $tpl
 
 $lng
 
 $objDefinition
 
 $ref_id
 

Protected Attributes

 $ctrl
 
 $access
 
 $error
 
 $nav_history
 

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.

Constructor & Destructor Documentation

◆ __construct()

ilHTLMPresentationGUI::__construct ( )

Constructor @access public.

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

68 {
69 global $DIC;
70
71 $this->access = $DIC->access();
72 $this->error = $DIC["ilErr"];
73 $this->nav_history = $DIC["ilNavigationHistory"];
74 $tpl = $DIC["tpl"];
75 $lng = $DIC->language();
76 $objDefinition = $DIC["objDefinition"];
77 $ilCtrl = $DIC->ctrl();
78 $ilAccess = $DIC->access();
79 $ilErr = $DIC["ilErr"];
80
81 $lng->loadLanguageModule("content");
82
83 // check write permission
84 if (!$ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
85 $ilErr->raiseError($lng->txt("permission_denied"), $ilErr->MESSAGE);
86 }
87
88
89 $this->ctrl = $ilCtrl;
90
91 //$this->ctrl->saveParameter($this, array("ref_id", "obj_id"));
92 $this->ctrl->saveParameter($this, array("ref_id"));
93
94 // initiate variables
95 $this->tpl = $tpl;
96 $this->lng = $lng;
97 $this->objDefinition = $objDefinition;
98 $this->ref_id = $_GET["ref_id"];
99 }
$_GET["client_id"]
error($a_errmsg)
set error message @access public
global $ilCtrl
Definition: ilias.php:18
$ilErr
Definition: raiseError.php:18
global $DIC
Definition: saml.php:7

References $_GET, $DIC, $ilCtrl, $ilErr, $lng, $objDefinition, $tpl, and error().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilHTLMPresentationGUI::executeCommand ( )

execute command

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

105 {
108 $ilAccess = $this->access;
109 $ilNavigationHistory = $this->nav_history;
110
111 // add entry to navigation history
112 if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
113 $ilCtrl->setParameterByClass("ilobjfilebasedlmgui", "ref_id", $_GET["ref_id"]);
114 $ilNavigationHistory->addItem(
115 $_GET["ref_id"],
116 $ilCtrl->getLinkTargetByClass(array("ilrepositorygui", "ilobjfilebasedlmgui"), "infoScreen"),
117 "htlm"
118 );
119 }
120
121 $next_class = $this->ctrl->getNextClass($this);
122 $cmd = $this->ctrl->getCmd("");
123
124 switch ($next_class) {
125 case "ilobjfilebasedlmgui":
126 require_once("./Modules/HTMLLearningModule/classes/class.ilObjFileBasedLMGUI.php");
127 $fblm_gui = new ilObjFileBasedLMGUI("", $_GET["ref_id"], true, false);
128 $ilCtrl->forwardCommand($fblm_gui);
129 $tpl->show();
130 break;
131
132 default:
133 $this->ctrl->setCmdClass("ilobjfilebasedlmgui");
134 $this->ctrl->setCmd("showLearningModule");
135 return $this->executeCommand();
136 break;
137 }
138 }
User Interface class for file based learning modules (HTML)

References $_GET, $access, $ctrl, $ilCtrl, $nav_history, $tpl, and executeCommand().

Referenced by executeCommand().

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

Field Documentation

◆ $access

ilHTLMPresentationGUI::$access
protected

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

Referenced by executeCommand().

◆ $ctrl

ilHTLMPresentationGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $error

ilHTLMPresentationGUI::$error
protected

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

◆ $lng

ilHTLMPresentationGUI::$lng

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

Referenced by __construct().

◆ $nav_history

ilHTLMPresentationGUI::$nav_history
protected

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

Referenced by executeCommand().

◆ $objDefinition

ilHTLMPresentationGUI::$objDefinition

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

Referenced by __construct().

◆ $ref_id

ilHTLMPresentationGUI::$ref_id

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

◆ $tpl

ilHTLMPresentationGUI::$tpl

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

Referenced by __construct(), and executeCommand().


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