ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 $lng;
23 
24  $lng->loadLanguageModule('itgr');
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 
118 return 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 ?>