ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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->info_screen_enabled = false;
42 $this->subitems_enabled = true;
43 $this->type = "itgr";
44 $this->gui_class_name = "ilobjitemgroupgui";
45
46 // general commands array
47 include_once('./Modules/ItemGroup/classes/class.ilObjItemGroupAccess.php');
48 $this->commands = ilObjItemGroupAccess::_getCommands();
49 }
50
58 function enableSubscribe($a_val)
59 {
60 $this->subscribe_enabled = false;
61 }
62
70 function enableInfoScreen($a_info_screen)
71 {
72 $this->info_screen_enabled = false;
73 }
74
75
83 public function getCommandLink($a_cmd)
84 {
85 global $ilCtrl;
86
87 // separate method for this line
88 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
89 $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
90 $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
91 return $cmd_link;
92 }
93
94
100 public function getProperties()
101 {
102 $props = array();
103 return $props;
104 }
105
106
107
113 protected static function lookupAssignedMaterials($a_sess_id)
114 {
115 global $ilDB;
116
117return array();
118/*
119 $query = 'SELECT * FROM event_items '.
120 'WHERE event_id = '.$ilDB->quote($a_sess_id).' ';
121 $res = $ilDB->query($query);
122 while($row = $res->fetchRow(FETCHMODE_OBJECT))
123 {
124 $items[] = $row['item_id'];
125 }
126 return $items ? $items : array();*/
127 }
128
129}
130?>
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static _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:17
global $ilDB