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

Handles user interface for media casts. More...

+ Collaboration diagram for ilMediaCastHandlerGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 execute command More...
 

Protected Attributes

 $ctrl
 
 $lng
 
 $access
 
 $tpl
 
 $nav_history
 

Detailed Description

Handles user interface for media casts.

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

ilMediaCastHandlerGUI: ilObjMediaCastGUI

Definition at line 14 of file class.ilMediaCastHandlerGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilMediaCastHandlerGUI::__construct ( )

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

References $DIC, and $ilCtrl.

42  {
43  global $DIC;
44 
45  $this->lng = $DIC->language();
46  $this->access = $DIC->access();
47  $this->tpl = $DIC["tpl"];
48  $this->nav_history = $DIC["ilNavigationHistory"];
49  $ilCtrl = $DIC->ctrl();
50 
51  // initialisation stuff
52  $this->ctrl = $ilCtrl;
53  }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18

Member Function Documentation

◆ executeCommand()

ilMediaCastHandlerGUI::executeCommand ( )

execute command

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

References $_GET, $access, $lng, $nav_history, and $tpl.

59  {
60  $lng = $this->lng;
61  $ilAccess = $this->access;
62  $tpl = $this->tpl;
63  $ilNavigationHistory = $this->nav_history;
64 
65  $cmd = $this->ctrl->getCmd();
66  $next_class = $this->ctrl->getNextClass($this);
67  if ($next_class == "") {
68  $this->ctrl->setCmdClass("ilobjmediacastgui");
69  $next_class = $this->ctrl->getNextClass($this);
70  }
71 
72  // add entry to navigation history
73  if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
74  $ilNavigationHistory->addItem(
75  $_GET["ref_id"],
76  "ilias.php?baseClass=ilMediaCastHandlerGUI&cmd=showContent&ref_id=" . $_GET["ref_id"],
77  "mcst"
78  );
79  }
80 
81  switch ($next_class) {
82  case 'ilobjmediacastgui':
83  require_once "./Modules/MediaCast/classes/class.ilObjMediaCastGUI.php";
84  $mc_gui = new ilObjMediaCastGUI("", (int) $_GET["ref_id"], true, false);
85  $this->ctrl->forwardCommand($mc_gui);
86  break;
87  }
88 
89  $tpl->show();
90  }
$_GET["client_id"]
Class ilObjMediaCastGUI.

Field Documentation

◆ $access

ilMediaCastHandlerGUI::$access
protected

Definition at line 29 of file class.ilMediaCastHandlerGUI.php.

Referenced by executeCommand().

◆ $ctrl

ilMediaCastHandlerGUI::$ctrl
protected

Definition at line 19 of file class.ilMediaCastHandlerGUI.php.

◆ $lng

ilMediaCastHandlerGUI::$lng
protected

Definition at line 24 of file class.ilMediaCastHandlerGUI.php.

Referenced by executeCommand().

◆ $nav_history

ilMediaCastHandlerGUI::$nav_history
protected

Definition at line 39 of file class.ilMediaCastHandlerGUI.php.

Referenced by executeCommand().

◆ $tpl

ilMediaCastHandlerGUI::$tpl
protected

Definition at line 34 of file class.ilMediaCastHandlerGUI.php.

Referenced by executeCommand().


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