ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilObjMediaCastListGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
6include_once "Services/Object/classes/class.ilObjectListGUI.php";
7
17{
21 public function init()
22 {
23 $this->copy_enabled = true;
24 $this->delete_enabled = true;
25 $this->cut_enabled = true;
26 $this->subscribe_enabled = true;
27 $this->link_enabled = true;
28 $this->info_screen_enabled = true;
29 $this->type = "mcst";
30 $this->gui_class_name = "ilobjmediacastgui";
31
32 // general commands array
33 include_once('./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php');
34 $this->commands = ilObjMediaCastAccess::_getCommands();
35 }
36
37
46 public function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
47 {
48 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
49 }
50
51
59 public function getCommandFrame($a_cmd)
60 {
61 switch ($a_cmd) {
62 default:
63 $frame = ilFrameTargetInfo::_getFrame("MainContent");
64 break;
65 }
66
67 return $frame;
68 }
69
70
71
80 public function getProperties()
81 {
84
85 $props = array();
86
87 include_once("./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php");
88
89 if (!ilObjMediaCastAccess::_lookupOnline($this->obj_id)) {
90 $props[] = array("alert" => true, "property" => $lng->txt("status"),
91 "value" => $lng->txt("offline"));
92 }
93
94 return $props;
95 }
96
97
105 public function getCommandLink($a_cmd)
106 {
107 // separate method for this line
108 $cmd_link = "ilias.php?baseClass=ilMediaCastHandlerGUI&ref_id=" . $this->ref_id . "&cmd=$a_cmd";
109
110 return $cmd_link;
111 }
112
113 public function setChildId($a_child_id)
114 {
115 $this->child_id = $a_child_id;
116 }
117 public function getChildId()
118 {
119 return $this->child_id;
120 }
121} // END class.ilObjMediaCastListGUI
An exception for terminatinating execution or to throw for unit testing.
static _getFrame($a_class, $a_type='')
Get content frame name.
static _getCommands()
get commands
static _lookupOnline($a_id)
Check wether media cast is online.
ListGUI class for media cast objects.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
getCommandFrame($a_cmd)
Get command target frame.
getCommandLink($a_cmd)
Get command link url.
getProperties()
Get item properties.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18