ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups 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 include_once "Services/Object/classes/class.ilObjectListGUI.php";
6 
16 {
20  function __construct()
21  {
22  $this->ilObjectListGUI();
23  }
24 
28  function init()
29  {
30  $this->static_link_enabled = true;
31  $this->delete_enabled = true;
32  $this->cut_enabled = true;
33  $this->copy_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 = "book";
39  $this->gui_class_name = "ilobjbookingpoolgui";
40 
41  /*
42  include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
43  $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
44  if($this->substitutions->isActive())
45  {
46  $this->substitutions_enabled = true;
47  }
48  */
49 
50  // general commands array
51  include_once('./Modules/BookingManager/classes/class.ilObjBookingPoolAccess.php');
52  $this->commands = ilObjBookingPoolAccess::_getCommands();
53  }
54 
63  function getCommandFrame($a_cmd)
64  {
65  return parent::getCommandFrame($a_cmd);
66  }
67 
74  function getCommandLink($a_cmd)
75  {
76  global $ilCtrl;
77 
78  switch ($a_cmd)
79  {
80  default :
81  $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
82  $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
83  $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
84  break;
85  }
86 
87  return $cmd_link;
88  }
89 
90  function getProperties()
91  {
92  global $lng;
93 
94  // #11193
95 
96  $props = array();
97 
98  include_once("./Modules/BookingManager/classes/class.ilObjBookingPool.php");
99  if (!ilObjBookingPool::_lookupOnline($this->obj_id))
100  {
101  $props[] = array("alert" => true, "property" => $lng->txt("status"),
102  "value" => $lng->txt("offline"));
103  }
104  return $props;
105  }
106 }
107 
108 ?>