ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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  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 
45  public function getCommandFrame($a_cmd)
46  {
47  switch ($a_cmd) {
48  default:
49  $frame = ilFrameTargetInfo::_getFrame("MainContent");
50  break;
51  }
52 
53  return $frame;
54  }
55 
56 
57 
66  public function getProperties()
67  {
68  $lng = $this->lng;
70 
71  $props = array();
72 
73  include_once("./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php");
74 
75  if (!ilObjMediaCastAccess::_lookupOnline($this->obj_id)) {
76  $props[] = array("alert" => true, "property" => $lng->txt("status"),
77  "value" => $lng->txt("offline"));
78  }
79 
80  return $props;
81  }
82 
83 
91  public function getCommandLink($a_cmd)
92  {
93  // separate method for this line
94  $cmd_link = "ilias.php?baseClass=ilMediaCastHandlerGUI&ref_id=" . $this->ref_id . "&cmd=$a_cmd";
95 
96  return $cmd_link;
97  }
98 
99  public function setChildId($a_child_id)
100  {
101  $this->child_id = $a_child_id;
102  }
103  public function getChildId()
104  {
105  return $this->child_id;
106  }
107 } // END class.ilObjMediaCastListGUI
ListGUI class for media cast objects.
getCommandFrame($a_cmd)
Get command target frame.
getCommandLink($a_cmd)
Get command link url.
Class ilObjectListGUI.
getProperties()
Get item properties.
static _getFrame($a_class, $a_type='')
Get content frame name.
static _lookupOnline($a_id)
Check wether media cast is online.
$ilUser
Definition: imgupload.php:18
static _getCommands()
get commands