ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
24 include_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 
64  public 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  public function getCommandFrame($a_cmd)
78  {
79  switch ($a_cmd) {
80  default:
81  $frame = ilFrameTargetInfo::_getFrame("MainContent");
82  break;
83  }
84 
85  return $frame;
86  }
87 
88 
89 
98  public function getProperties()
99  {
100  $lng = $this->lng;
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  public 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  public function isSideBlock()
132  {
133  return true;
134  }
135 } // END class.ilObjExternalFeedListGUI
getCommandFrame($a_cmd)
Get command target frame.
initItem($a_ref_id, $a_obj_id, $a_title="", $a_description="")
inititialize new item
ListGUI class for media cast objects.
Class ilObjectListGUI.
$ilUser
Definition: imgupload.php:18
isSideBlock()
Returns whether current item is a block in a side column or not.
static _getFrame($a_class, $a_type='')
Get content frame name.
getCommandLink($a_cmd)
Get command link url.