ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilMediaCastHandlerGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
15 {
17  {
18  global $ilCtrl, $lng, $ilAccess, $ilias, $ilNavigationHistory;
19 
20  // initialisation stuff
21  $this->ctrl =& $ilCtrl;
22 
23  }
24 
28  function &executeCommand()
29  {
30  global $lng, $ilAccess, $tpl, $ilNavigationHistory;
31 
32  $cmd = $this->ctrl->getCmd();
33  $next_class = $this->ctrl->getNextClass($this);
34  if ($next_class == "")
35  {
36  $this->ctrl->setCmdClass("ilobjmediacastgui");
37  $next_class = $this->ctrl->getNextClass($this);
38  }
39 
40  // add entry to navigation history
41  if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
42  {
43  $ilNavigationHistory->addItem($_GET["ref_id"],
44  "ilias.php?baseClass=ilMediaCastHandlerGUI&cmd=listItems&ref_id=".$_GET["ref_id"], "mcst");
45  }
46 
47  switch ($next_class)
48  {
49  case 'ilobjmediacastgui':
50  require_once "./Modules/MediaCast/classes/class.ilObjMediaCastGUI.php";
51  $mc_gui =& new ilObjMediaCastGUI("", (int) $_GET["ref_id"], true, false);
52  $this->ctrl->forwardCommand($mc_gui);
53  break;
54  }
55 
56  $tpl->show();
57  }
58 
59 }