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

GUI class for html lm presentation. More...

+ Collaboration diagram for ilHTLMPresentationGUI:

Public Member Functions

 ilHTLMPresentationGUI ()
 Constructor 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$

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.

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

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"]
$cmd
Definition: sahs_server.php:35
global $ilCtrl
Definition: ilias.php:18
User Interface class for file based learning modules (HTML)

◆ ilHTLMPresentationGUI()

ilHTLMPresentationGUI::ilHTLMPresentationGUI ( )

Constructor public.

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

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

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  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
redirection script todo: (a better solution should control the processing via a xml file) ...

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: