ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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{
16 function __construct()
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=showContent&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}
global $tpl
Definition: ilias.php:8
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Handles user interface for media casts.
Class ilObjMediaCastGUI.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:17
$cmd
Definition: sahs_server.php:35