ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
38
46 public function getCommandFrame($a_cmd)
47 {
48 switch ($a_cmd) {
49 case "":
50 $frame = ilFrameTargetInfo::_getFrame("MainContent");
51 break;
52
53 default:
54 }
55
56 return $frame;
57 }
58
59
60
69 public function getProperties()
70 {
73
74 $props = array();
75
76 return $props;
77 }
78
79
87 public function getCommandLink($a_cmd)
88 {
89 if ($a_cmd == "infoScreen") {
90 $cmd = "&cmd=infoScreenFrameset";
91 }
92
93 // separate method for this line
94 $cmd_link = "ilias.php?baseClass=ilMediaPoolPresentationGUI" .
95 "&ref_id=" . $this->ref_id . '&cmd=' . $a_cmd;
96
97 return $cmd_link;
98 }
99} // 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.
getCommandFrame($a_cmd)
Get command target frame.
getCommandLink($a_cmd)
Get command link url.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18