ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjExternalFeedListGUI.php
Go to the documentation of this file.
1<?php
2/*
3 +-----------------------------------------------------------------------------+
4 | ILIAS open source |
5 +-----------------------------------------------------------------------------+
6 | Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
7 | |
8 | This program is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU General Public License |
10 | as published by the Free Software Foundation; either version 2 |
11 | of the License, or (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 +-----------------------------------------------------------------------------+
22*/
23
24include_once "Services/Object/classes/class.ilObjectListGUI.php";
25
35{
39 public function init()
40 {
41 $this->copy_enabled = false;
42 $this->delete_enabled = true;
43 $this->cut_enabled = true;
44 $this->subscribe_enabled = true;
45 $this->link_enabled = true;
46 $this->info_screen_enabled = true;
47 $this->type = "mcst";
48 $this->gui_class_name = "ilobjexternalfeedgui";
49
50 // general commands array
51 include_once('./Modules/ExternalFeed/classes/class.ilObjExternalFeedAccess.php');
52 $this->commands = ilObjExternalFeedAccess::_getCommands();
53 }
54
55
56
64 public function getCommandFrame($a_cmd)
65 {
66 switch ($a_cmd) {
67 default:
68 $frame = ilFrameTargetInfo::_getFrame("MainContent");
69 break;
70 }
71
72 return $frame;
73 }
74
75
76
85 public function getProperties()
86 {
89
90 $props = array();
91 //$props[] = array(
92 // "property" => $this->lng->txt("exc_time_to_send"),
93 // "value" => ilObjExerciseAccess::_lookupRemainingWorkingTimeString($this->obj_id)
94 //);
95
96 return $props;
97 }
98
99
107 public function getCommandLink($a_cmd)
108 {
109 // separate method for this line
110 $cmd_link = "ilias.php?baseClass=ilExternalFeedHandlerGUI&ref_id=" . $this->ref_id . "&cmd=$a_cmd";
111
112 return $cmd_link;
113 }
114
118 public function isSideBlock()
119 {
120 return true;
121 }
122} // END class.ilObjExternalFeedListGUI
An exception for terminatinating execution or to throw for unit testing.
static _getFrame($a_class, $a_type='')
Get content frame name.
ListGUI class for media cast objects.
getCommandLink($a_cmd)
Get command link url.
isSideBlock()
Returns whether current item is a block in a side column or not.
getCommandFrame($a_cmd)
Get command target frame.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18