ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjMediaCastListGUI.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  protected int $child_id;
27 
28  public function init(): void
29  {
30  $this->copy_enabled = true;
31  $this->delete_enabled = true;
32  $this->cut_enabled = true;
33  $this->subscribe_enabled = true;
34  $this->link_enabled = true;
35  $this->info_screen_enabled = true;
36  $this->type = "mcst";
37  $this->gui_class_name = "ilobjmediacastgui";
38 
39  // general commands array
40  $this->commands = ilObjMediaCastAccess::_getCommands();
41  }
42 
43  public function getCommandFrame(string $cmd): string
44  {
45  switch ($cmd) {
46  default:
47  $frame = ilFrameTargetInfo::_getFrame("MainContent");
48  break;
49  }
50 
51  return $frame;
52  }
53 
54 
55  public function getProperties(): array
56  {
57  $lng = $this->lng;
58  $props = array();
59 
60  if (!ilObjMediaCastAccess::_lookupOnline($this->obj_id)) {
61  $props[] = array("alert" => true, "property" => $lng->txt("status"),
62  "value" => $lng->txt("offline"));
63  }
64 
65  return $props;
66  }
67 
68  public function getCommandLink(string $cmd): string
69  {
70  // separate method for this line
71  $cmd_link = "ilias.php?baseClass=ilMediaCastHandlerGUI&ref_id=" . $this->ref_id . "&cmd=$cmd";
72 
73  return $cmd_link;
74  }
75 
76  public function setChildId(string $a_child_id): void
77  {
78  $this->child_id = $a_child_id;
79  }
80 
81  public function getChildId(): string
82  {
83  return $this->child_id;
84  }
85 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _getFrame(string $a_class)