• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

classes/class.ilObjFileListGUI.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2005 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021         +-----------------------------------------------------------------------------+
00022 */
00023 
00024 include_once "classes/class.ilObjectListGUI.php";
00025 
00034 class ilObjFileListGUI extends ilObjectListGUI
00035 {
00040         function ilObjFileListGUI()
00041         {
00042                 $this->ilObjectListGUI();
00043         }
00044 
00048         function init()
00049         {
00050                 $this->delete_enabled = true;
00051                 $this->cut_enabled = true;
00052                 $this->subscribe_enabled = true;
00053                 $this->link_enabled = true;
00054                 $this->payment_enabled = true;
00055                 $this->info_screen_enabled = true;
00056                 $this->type = "file";
00057                 $this->gui_class_name = "ilobjfilegui";
00058 
00059                 // general commands array
00060                 include_once('class.ilObjFileAccess.php');
00061                 $this->commands = ilObjFileAccess::_getCommands();
00062         }
00063 
00064 
00073         function initItem($a_ref_id, $a_obj_id, $a_title = "", $a_description = "")
00074         {
00075                 parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description);
00076         }
00077 
00078 
00086         function getCommandFrame($a_cmd)
00087         {
00088                 switch($a_cmd)
00089                 {
00090                         case "":
00091                                 $frame = ilFrameTargetInfo::_getFrame("RepositoryContent");
00092                                 break;
00093 
00094                         default:
00095                 }
00096 
00097                 return $frame;
00098         }
00099 
00100 
00101 
00110         function getProperties()
00111         {
00112                 global $lng, $ilUser;
00113 
00114                 $props = array();
00115 
00116                 // to do: implement extra smaller file info object
00117                 include_once("classes/class.ilObjFileAccess.php");
00118 
00119                 $props[] = array("alert" => false, "property" => $lng->txt("type"),
00120                         "value" => ilObjFileAccess::_lookupSuffix($this->obj_id));
00121                 $props[] = array("alert" => false, "property" => $lng->txt("size"),
00122                         "value" => ilObjFileAccess::_lookupFileSize($this->obj_id, true));
00123                 $props[] = array("alert" => false, "property" => $lng->txt("last_update"),
00124                         "value" => ilObject::_lookupLastUpdate($this->obj_id, true));
00125                 $props[] = array("alert" => false, "property" => $lng->txt("version"),
00126                         "value" => ilObjFileAccess::_lookupVersion($this->obj_id));
00127 
00128                 return $props;
00129         }
00130 
00131 
00139         /*
00140         function getCommandLink($a_cmd)
00141         {
00142                 // separate method for this line
00143                 $cmd_link = "repo.php?ref_id=".$this->ref_id."&cmd=$a_cmd";
00144 
00145                 return $cmd_link;
00146         }*/
00147 
00148 
00149 
00150 } // END class.ilObjFileListGUI
00151 ?>

Generated on Fri Dec 13 2013 13:52:07 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1