Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
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
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
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150 }
00151 ?>