ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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{
22 {
23 $this->ilObjectListGUI();
24 }
25
29 function init()
30 {
31 $this->copy_enabled = true;
32 $this->delete_enabled = true;
33 $this->cut_enabled = true;
34 $this->subscribe_enabled = true;
35 $this->link_enabled = true;
36 $this->payment_enabled = false;
37 $this->info_screen_enabled = true;
38 $this->type = "mcst";
39 $this->gui_class_name = "ilobjmediacastgui";
40
41 // general commands array
42 include_once('./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php');
43 $this->commands = ilObjMediaCastAccess::_getCommands();
44 }
45
46
55 function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
56 {
57 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
58 }
59
60
68 function getCommandFrame($a_cmd)
69 {
70 switch($a_cmd)
71 {
72 default:
73 $frame = ilFrameTargetInfo::_getFrame("MainContent");
74 break;
75 }
76
77 return $frame;
78 }
79
80
81
90 function getProperties()
91 {
92 global $lng, $ilUser;
93
94 $props = array();
95
96 include_once("./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php");
97
98 if (!ilObjMediaCastAccess::_lookupOnline($this->obj_id))
99 {
100 $props[] = array("alert" => true, "property" => $lng->txt("status"),
101 "value" => $lng->txt("offline"));
102 }
103
104 return $props;
105 }
106
107
115 function getCommandLink($a_cmd)
116 {
117 // separate method for this line
118 $cmd_link = "ilias.php?baseClass=ilMediaCastHandlerGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
119
120 return $cmd_link;
121 }
122
123 function setChildId($a_child_id)
124 {
125 $this->child_id = $a_child_id;
126 }
127 function getChildId()
128 {
129 return $this->child_id;
130 }
131
132
133} // END class.ilObjMediaCastListGUI
134?>
static _getFrame($a_class, $a_type='')
Get content frame name.
_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.
ilObjectListGUI()
constructor
global $lng
Definition: privfeed.php:40
global $ilUser
Definition: imgupload.php:15