ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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{
20 public function init()
21 {
22 $this->copy_enabled = true;
23 #$this->static_link_enabled = true;
24 $this->delete_enabled = true;
25 $this->cut_enabled = true;
26 $this->subscribe_enabled = true;
27 $this->link_enabled = true;
28 $this->info_screen_enabled = true;
29 $this->type = "mep";
30 $this->gui_class_name = "ilobjmediapoolgui";
31
32 // general commands array
33 include_once('Modules/MediaPool/classes/class.ilObjMediaPoolAccess.php');
34 $this->commands = ilObjMediaPoolAccess::_getCommands();
35 }
36
37
46 public function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
47 {
48 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
49 }
50
51
59 public function getCommandFrame($a_cmd)
60 {
61 switch ($a_cmd) {
62 case "":
63 $frame = ilFrameTargetInfo::_getFrame("MainContent");
64 break;
65
66 default:
67 }
68
69 return $frame;
70 }
71
72
73
82 public function getProperties()
83 {
86
87 $props = array();
88
89 return $props;
90 }
91
92
100 public function getCommandLink($a_cmd)
101 {
102 if ($a_cmd == "infoScreen") {
103 $cmd = "&cmd=infoScreenFrameset";
104 }
105
106 // separate method for this line
107 $cmd_link = "ilias.php?baseClass=ilMediaPoolPresentationGUI" .
108 "&ref_id=" . $this->ref_id . '&cmd=' . $a_cmd;
109
110 return $cmd_link;
111 }
112} // END class.ilObjTestListGUI
An exception for terminatinating execution or to throw for unit testing.
static _getFrame($a_class, $a_type='')
Get content frame name.
static _getCommands()
get commands
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.
$ilUser
Definition: imgupload.php:18