ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
5 include_once('Services/Object/classes/class.ilObjectListGUI.php');
6 
16 {
20  public function __construct()
21  {
22  global $DIC;
23 
24  $this->lng = $DIC->language();
25  $this->ctrl = $DIC->ctrl();
26  $lng = $DIC->language();
27 
28  $lng->loadLanguageModule('itgr');
29  parent::__construct();
30  }
31 
38  public function init()
39  {
40  $this->delete_enabled = true;
41  $this->cut_enabled = false;
42  $this->copy_enabled = false;
43  $this->subscribe_enabled = false;
44  $this->link_enabled = false;
45  $this->info_screen_enabled = false;
46  $this->subitems_enabled = true;
47  $this->type = "itgr";
48  $this->gui_class_name = "ilobjitemgroupgui";
49 
50  // general commands array
51  include_once('./Modules/ItemGroup/classes/class.ilObjItemGroupAccess.php');
52  $this->commands = ilObjItemGroupAccess::_getCommands();
53  }
54 
62  public function enableSubscribe($a_val)
63  {
64  $this->subscribe_enabled = false;
65  }
66 
74  public function enableInfoScreen($a_info_screen)
75  {
76  $this->info_screen_enabled = false;
77  }
78 
79 
87  public function getCommandLink($a_cmd)
88  {
90 
91  // separate method for this line
92  $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $this->ref_id);
93  $cmd_link = $ilCtrl->getLinkTargetByClass("ilrepositorygui", $a_cmd);
94  $ilCtrl->setParameterByClass("ilrepositorygui", "ref_id", $_GET["ref_id"]);
95  return $cmd_link;
96  }
97 
98 
104  public function getProperties()
105  {
106  $props = array();
107  return $props;
108  }
109 
110 
111 
117  protected static function lookupAssignedMaterials($a_sess_id)
118  {
119  global $DIC;
120 
121  $ilDB = $DIC->database();
122 
123  return array();
124  /*
125  $query = 'SELECT * FROM event_items '.
126  'WHERE event_id = '.$ilDB->quote($a_sess_id).' ';
127  $res = $ilDB->query($query);
128  while($row = $res->fetchRow(FETCHMODE_OBJECT))
129  {
130  $items[] = $row['item_id'];
131  }
132  return $items ? $items : array();*/
133  }
134 }
static lookupAssignedMaterials($a_sess_id)
Get assigned items of event.
static _getCommands()
get list of command/permission combinations
global $DIC
Definition: saml.php:7
$_GET["client_id"]
enableInfoScreen($a_info_screen)
Prevent enabling info necessary due to bug 11509.
global $ilCtrl
Definition: ilias.php:18
Item group list gui class.
Class ilObjectListGUI.
global $ilDB
getCommandLink($a_cmd)
Get command link url.
enableSubscribe($a_val)
Enable subscribtion (deactivated) necessary due to bug 11509.