ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 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
64 function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
65 {
66 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
67 }
68
69
77 function getCommandFrame($a_cmd)
78 {
79 switch($a_cmd)
80 {
81 default:
82 $frame = ilFrameTargetInfo::_getFrame("MainContent");
83 break;
84 }
85
86 return $frame;
87 }
88
89
90
99 function getProperties()
100 {
101 global $lng, $ilUser;
102
103 $props = array();
104 //$props[] = array(
105 // "property" => $this->lng->txt("exc_time_to_send"),
106 // "value" => ilObjExerciseAccess::_lookupRemainingWorkingTimeString($this->obj_id)
107 //);
108
109 return $props;
110 }
111
112
120 function getCommandLink($a_cmd)
121 {
122 // separate method for this line
123 $cmd_link = "ilias.php?baseClass=ilExternalFeedHandlerGUI&ref_id=".$this->ref_id."&cmd=$a_cmd";
124
125 return $cmd_link;
126 }
127
131 function isSideBlock()
132 {
133 return true;
134 }
135
136
137} // END class.ilObjExternalFeedListGUI
138?>
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.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
getCommandFrame($a_cmd)
Get command target frame.
Class ilObjectListGUI.
global $lng
Definition: privfeed.php:17
$ilUser
Definition: imgupload.php:18