ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 function __construct()
21 {
22 parent::__construct();
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->info_screen_enabled = true;
37 $this->type = "book";
38 $this->gui_class_name = "ilobjbookingpoolgui";
39
40 /*
41 include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDSubstitution.php');
42 $this->substitutions = ilAdvancedMDSubstitution::_getInstanceByObjectType($this->type);
43 if($this->substitutions->isActive())
44 {
45 $this->substitutions_enabled = true;
46 }
47 */
48
49 // general commands array
50 include_once('./Modules/BookingManager/classes/class.ilObjBookingPoolAccess.php');
51 $this->commands = ilObjBookingPoolAccess::_getCommands();
52 }
53
62 function getCommandFrame($a_cmd)
63 {
64 return parent::getCommandFrame($a_cmd);
65 }
66
73 function getCommandLink($a_cmd)
74 {
75 global $ilCtrl;
76
77 switch ($a_cmd)
78 {
79 default :
80 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
81 $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
82 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
83 break;
84 }
85
86 return $cmd_link;
87 }
88
89 function getProperties()
90 {
91 global $lng;
92
93 // #11193
94
95 $props = array();
96
97 include_once("./Modules/BookingManager/classes/class.ilObjBookingPool.php");
98 if (!ilObjBookingPool::_lookupOnline($this->obj_id))
99 {
100 $props[] = array("alert" => true, "property" => $lng->txt("status"),
101 "value" => $lng->txt("offline"));
102 }
103 return $props;
104 }
105}
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 $lng
Definition: privfeed.php:17