ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilObjItemGroupListGUI.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 $lng;
23
24 $lng->loadLanguageModule('itgr');
25 parent::__construct();
26 }
27
34 public function init()
35 {
36 $this->delete_enabled = true;
37 $this->cut_enabled = false;
38 $this->copy_enabled = false;
39 $this->subscribe_enabled = false;
40 $this->link_enabled = false;
41 $this->payment_enabled = false;
42 $this->info_screen_enabled = false;
43 $this->subitems_enabled = true;
44 $this->type = "itgr";
45 $this->gui_class_name = "ilobjitemgroupgui";
46
47 // general commands array
48 include_once('./Modules/ItemGroup/classes/class.ilObjItemGroupAccess.php');
49 $this->commands = ilObjItemGroupAccess::_getCommands();
50 }
51
59 function enableSubscribe($a_val)
60 {
61 $this->subscribe_enabled = false;
62 }
63
71 function enableInfoScreen($a_info_screen)
72 {
73 $this->info_screen_enabled = false;
74 }
75
76
84 public function getCommandLink($a_cmd)
85 {
86 global $ilCtrl;
87
88 // separate method for this line
89 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
90 $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
91 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
92 return $cmd_link;
93 }
94
95
101 public function getProperties()
102 {
103 $props = array();
104 return $props;
105 }
106
107
108
114 protected static function lookupAssignedMaterials($a_sess_id)
115 {
116 global $ilDB;
117
118return array();
119/*
120 $query = 'SELECT * FROM event_items '.
121 'WHERE event_id = '.$ilDB->quote($a_sess_id).' ';
122 $res = $ilDB->query($query);
123 while($row = $res->fetchRow(FETCHMODE_OBJECT))
124 {
125 $items[] = $row['item_id'];
126 }
127 return $items ? $items : array();*/
128 }
129
130}
131?>
$_GET["client_id"]
_getCommands()
get list of command/permission combinations
Item group list gui class.
enableInfoScreen($a_info_screen)
Prevent enabling info necessary due to bug 11509.
getCommandLink($a_cmd)
Get command link url.
enableSubscribe($a_val)
Enable subscribtion (deactivated) necessary due to bug 11509.
static lookupAssignedMaterials($a_sess_id)
Get assigned items of event.
Class ilObjectListGUI.
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40
global $ilDB