ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
5include_once "Services/Object/classes/class.ilObjectListGUI.php";
6
16{
20 public function __construct()
21 {
22 global $DIC;
23
24 $this->ctrl = $DIC->ctrl();
25 $this->lng = $DIC->language();
26 parent::__construct();
27 }
28
32 public function init()
33 {
34 $this->static_link_enabled = true;
35 $this->delete_enabled = true;
36 $this->cut_enabled = true;
37 $this->copy_enabled = true;
38 $this->subscribe_enabled = true;
39 $this->link_enabled = true;
40 $this->info_screen_enabled = true;
41 $this->type = "book";
42 $this->gui_class_name = "ilobjbookingpoolgui";
43
44 /*
45 include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
46 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
47 if($this->substitutions->isActive())
48 {
49 $this->substitutions_enabled = true;
50 }
51 */
52
53 // general commands array
54 include_once('./Modules/BookingManager/classes/class.ilObjBookingPoolAccess.php');
55 $this->commands = ilObjBookingPoolAccess::_getCommands();
56 }
57
66 public function getCommandFrame($a_cmd)
67 {
68 return parent::getCommandFrame($a_cmd);
69 }
70
77 public function getCommandLink($a_cmd)
78 {
80
81 switch ($a_cmd) {
82 default:
83 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
84 $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
85 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", (int) $_GET["ref_id"]);
86 break;
87 }
88
89 return $cmd_link;
90 }
91
92 public function getProperties()
93 {
95
96 // #11193
97
98 $props = array();
99
100 include_once("./Modules/BookingManager/classes/class.ilObjBookingPool.php");
101 if (!ilObjBookingPool::_lookupOnline($this->obj_id)) {
102 $props[] = array("alert" => true, "property" => $lng->txt("status"),
103 "value" => $lng->txt("offline"));
104 }
105 return $props;
106 }
107}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilObjBookingPoolListGUI.
getCommandFrame($a_cmd)
Get command target frame.
getCommandLink($a_cmd)
Get command link url.
static _lookupOnline($a_obj_id)
Check object status.
Class ilObjectListGUI.
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7