ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilObjMediaPoolListGUI.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 {
17 
21  function init()
22  {
23  $this->copy_enabled = true;
24  #$this->static_link_enabled = true;
25  $this->delete_enabled = true;
26  $this->cut_enabled = true;
27  $this->subscribe_enabled = true;
28  $this->link_enabled = true;
29  $this->info_screen_enabled = true;
30  $this->type = "mep";
31  $this->gui_class_name = "ilobjmediapoolgui";
32 
33  // general commands array
34  include_once('Modules/MediaPool/classes/class.ilObjMediaPoolAccess.php');
35  $this->commands = ilObjMediaPoolAccess::_getCommands();
36 
37  }
38 
39 
48  function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
49  {
50  parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
51  }
52 
53 
61  function getCommandFrame($a_cmd)
62  {
63  switch($a_cmd)
64  {
65  case "":
66  $frame = ilFrameTargetInfo::_getFrame("MainContent");
67  break;
68 
69  default:
70  }
71 
72  return $frame;
73  }
74 
75 
76 
85  function getProperties()
86  {
87  global $lng, $ilUser;
88 
89  $props = array();
90 
91  return $props;
92  }
93 
94 
102  function getCommandLink($a_cmd)
103  {
104 
105  if ($a_cmd == "infoScreen")
106  {
107  $cmd = "&cmd=infoScreenFrameset";
108  }
109 
110  // separate method for this line
111  $cmd_link = "ilias.php?baseClass=ilMediaPoolPresentationGUI".
112  "&ref_id=".$this->ref_id.'&cmd='.$a_cmd;
113 
114  return $cmd_link;
115  }
116 
117 
118 
119 } // END class.ilObjTestListGUI
120 ?>
$cmd
Definition: sahs_server.php:35
getProperties()
Get item properties.
Class ilObjMediaPoolListGUI.
static _getCommands()
get commands
Class ilObjectListGUI.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
getCommandLink($a_cmd)
Get command link url.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
static _getFrame($a_class, $a_type='')
Get content frame name.
global $lng
Definition: privfeed.php:17
getCommandFrame($a_cmd)
Get command target frame.