ILIAS  release_7 Revision v7.30-3-g800a261c036
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{
19 protected $ctrl;
20
24 protected $lng;
25
29 protected $access;
30
34 protected $tpl;
35
39 protected $nav_history;
40
41 public function __construct()
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 }
54
58 public function executeCommand()
59 {
61 $ilAccess = $this->access;
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->printToStdout();
90 }
91}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Handles user interface for media casts.
Class ilObjMediaCastGUI.
global $DIC
Definition: goto.php:24