ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
6 include_once "Services/Object/classes/class.ilObjectListGUI.php";
7 
17 {
21  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  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  function getCommandFrame($a_cmd)
60  {
61  switch($a_cmd)
62  {
63  default:
64  $frame = ilFrameTargetInfo::_getFrame("MainContent");
65  break;
66  }
67 
68  return $frame;
69  }
70 
71 
72 
81  function getProperties()
82  {
83  global $lng, $ilUser;
84 
85  $props = array();
86 
87  include_once("./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php");
88 
89  if (!ilObjMediaCastAccess::_lookupOnline($this->obj_id))
90  {
91  $props[] = array("alert" => true, "property" => $lng->txt("status"),
92  "value" => $lng->txt("offline"));
93  }
94 
95  return $props;
96  }
97 
98 
106  function getCommandLink($a_cmd)
107  {
108  // separate method for this line
109  $cmd_link = "ilias.php?baseClass=ilMediaCastHandlerGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
110 
111  return $cmd_link;
112  }
113 
114  function setChildId($a_child_id)
115  {
116  $this->child_id = $a_child_id;
117  }
118  function getChildId()
119  {
120  return $this->child_id;
121  }
122 
123 
124 } // END class.ilObjMediaCastListGUI
125 ?>
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
ListGUI class for media cast objects.
getCommandFrame($a_cmd)
Get command target frame.
getCommandLink($a_cmd)
Get command link url.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
getProperties()
Get item properties.
static _getFrame($a_class, $a_type='')
Get content frame name.
global $lng
Definition: privfeed.php:17
static _lookupOnline($a_id)
Check wether media cast is online.
static _getCommands()
get commands