ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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
5include_once "Services/Object/classes/class.ilObjectListGUI.php";
6
16{
22 {
23 $this->ilObjectListGUI();
24 }
25
29 function init()
30 {
31 $this->copy_enabled = true;
32 #$this->static_link_enabled = true;
33 $this->delete_enabled = true;
34 $this->cut_enabled = true;
35 $this->subscribe_enabled = true;
36 $this->link_enabled = true;
37 $this->payment_enabled = false;
38 $this->info_screen_enabled = true;
39 $this->type = "mep";
40 $this->gui_class_name = "ilobjmediapoolgui";
41
42 // general commands array
43 include_once('Modules/MediaPool/classes/class.ilObjMediaPoolAccess.php');
44 $this->commands = ilObjMediaPoolAccess::_getCommands();
45
46 }
47
48
57 function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
58 {
59 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
60 }
61
62
70 function getCommandFrame($a_cmd)
71 {
72 switch($a_cmd)
73 {
74 case "":
75 $frame = ilFrameTargetInfo::_getFrame("MainContent");
76 break;
77
78 default:
79 }
80
81 return $frame;
82 }
83
84
85
94 function getProperties()
95 {
96 global $lng, $ilUser;
97
98 $props = array();
99
100 return $props;
101 }
102
103
111 function getCommandLink($a_cmd)
112 {
113
114 if ($a_cmd == "infoScreen")
115 {
116 $cmd = "&cmd=infoScreenFrameset";
117 }
118
119 // separate method for this line
120 $cmd_link = "ilias.php?baseClass=ilMediaPoolPresentationGUI".
121 "&ref_id=".$this->ref_id.'&cmd='.$a_cmd;
122
123 return $cmd_link;
124 }
125
126
127
128} // END class.ilObjTestListGUI
129?>
static _getFrame($a_class, $a_type='')
Get content frame name.
Class ilObjMediaPoolListGUI.
getProperties()
Get item properties.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
getCommandFrame($a_cmd)
Get command target frame.
getCommandLink($a_cmd)
Get command link url.
Class ilObjectListGUI.
ilObjectListGUI()
constructor
global $lng
Definition: privfeed.php:40
$cmd
Definition: sahs_server.php:35
global $ilUser
Definition: imgupload.php:15