ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilObjectPluginListGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once "Services/Object/classes/class.ilObjectListGUI.php";
5 
13 abstract class ilObjectPluginListGUI extends ilObjectListGUI
14 {
18  final function init()
19  {
20  $this->delete_enabled = true;
21  $this->cut_enabled = true;
22  $this->subscribe_enabled = true;
23  $this->link_enabled = true;
24  $this->payment_enabled = false;
25  $this->info_screen_enabled = true;
26  $this->initType();
27  $this->plugin =
28  ilPlugin::getPluginObject(IL_COMP_SERVICE, "Repository", "robj",
29  ilPlugin::lookupNameForId(IL_COMP_SERVICE, "Repository", "robj", $this->getType()));
30  $this->gui_class_name = $this->getGuiClass();
31  $this->commands = $this->initCommands();
32  }
33 
34  abstract function getGuiClass();
35  abstract function initCommands();
36 
42  function setType($a_val)
43  {
44  $this->type = $a_val;
45  }
46 
52  function getType()
53  {
54  return $this->type;
55  }
56 
57  abstract function initType();
58 
62  function txt($a_str)
63  {
64  return $this->plugin->txt($a_str);
65  }
66 
67 
76  function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
77  {
78  parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
79  }
80 
81 
89  function getCommandFrame($a_cmd)
90  {
91  return ilFrameTargetInfo::_getFrame("MainContent");
92  }
93 
102  function getProperties()
103  {
104  global $lng, $ilUser;
105 
106  $props = array();
107 
108  return $props;
109  }
110 
111 
119  function getCommandLink($a_cmd)
120  {
121 
122  // separate method for this line
123  $cmd_link = "ilias.php?baseClass=ilObjPluginDispatchGUI&amp;".
124  "cmd=forward&amp;ref_id=".$this->ref_id."&amp;forwardCmd=".$a_cmd;
125 
126  return $cmd_link;
127  }
128 }
129 ?>