ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjBookingPoolListGUI.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 
15 {
19  public function __construct()
20  {
21  global $DIC;
22 
23  $this->ctrl = $DIC->ctrl();
24  $this->lng = $DIC->language();
26  }
27 
31  public function init()
32  {
33  $this->static_link_enabled = true;
34  $this->delete_enabled = true;
35  $this->cut_enabled = true;
36  $this->copy_enabled = true;
37  $this->subscribe_enabled = true;
38  $this->link_enabled = true;
39  $this->info_screen_enabled = true;
40  $this->type = "book";
41  $this->gui_class_name = "ilobjbookingpoolgui";
42 
43  // general commands array
44  $this->commands = ilObjBookingPoolAccess::_getCommands();
45  }
46 
55  public function getCommandFrame($a_cmd)
56  {
57  return parent::getCommandFrame($a_cmd);
58  }
59 
66  public function getCommandLink($a_cmd)
67  {
68  $ilCtrl = $this->ctrl;
69 
70  switch ($a_cmd) {
71  default:
72  $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
73  $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
74  $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", (int) $_GET["ref_id"]);
75  break;
76  }
77 
78  return $cmd_link;
79  }
80 
81  public function getProperties()
82  {
83  $lng = $this->lng;
84 
85  // #11193
86 
87  $props = array();
88 
89  if (!ilObjBookingPool::_lookupOnline($this->obj_id)) {
90  $props[] = array("alert" => true, "property" => $lng->txt("status"),
91  "value" => $lng->txt("offline"));
92  }
93  return $props;
94  }
95 }
$_GET["client_id"]
getCommandFrame($a_cmd)
Get command target frame.
static _lookupOnline($a_obj_id)
Check object status.
getCommandLink($a_cmd)
Get command link url.
Class ilObjectListGUI.
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
Class ilObjBookingPoolListGUI.