5include_once 
"Services/Object/classes/class.ilObjectListGUI.php";
 
   23                $this->delete_enabled = 
true;
 
   24                $this->cut_enabled = 
true;
 
   25                $this->copy_enabled = 
true;
 
   26                $this->subscribe_enabled = 
true;
 
   27                $this->link_enabled = 
true;
 
   28                $this->info_screen_enabled = 
true;
 
   30                $this->gui_class_name = 
"ilobjfilegui";
 
   33                include_once(
'./Modules/File/classes/class.ilObjFileAccess.php');
 
   51                                require_once(
'Modules/File/classes/class.ilObjFileAccess.php');
 
   79                include_once(
'Modules/File/classes/class.ilObjFileAccess.php');
 
   94                return preg_replace(
'/\\.[a-z0-9]+\\z/i',
'', $this->title);
 
  112                $props = parent::getProperties();
 
  116                include_once(
"./Modules/File/classes/class.ilObjFileAccess.php");
 
  120                if (! preg_match(
'/^\\.|\\.[a-zA-Z0-9]+$/', $this->title))
 
  122                                $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_interoperability"),
 
  123                                        "value" => 
$lng->txt(
"filename_extension_missing"),
 
  124                                        'propertyNameVisible' => 
false);
 
  128                $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"type"),
 
  130                        'propertyNameVisible' => 
false 
  134                if(is_array($fileData))
 
  136                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"size"),
 
  138                                'propertyNameVisible' => 
false);
 
  143                                if (parent::checkCommandAccess(
"write", 
"versions", $this->ref_id, $this->type))
 
  146                                        $value = 
"<a href=\"$link\">".$lng->txt(
"version").
": $version</a>";
 
  150                                        $value = 
$lng->txt(
"version").
": $version";
 
  152                                $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"version"),
 
  154                                        "propertyNameVisible" => 
false);
 
  158                        if($fileData[
"date"])
 
  160                                $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"last_update"),
 
  162                                        'propertyNameVisible' => 
false);
 
  209                if ($a_cmd == 
"sendfile" && $this->context == self::CONTEXT_REPOSITORY)
 
  215                return parent::getCommandLink($a_cmd);
 
An exception for terminatinating execution or to throw for unit testing.
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
static _getCommands()
get commands
static _getFileExtension($a_file_name)
Gets the file extension of the specified file name.
static _isFileInline($a_file_name)
Returns true, if the specified file shall be displayed inline in the browser.
static _getPermanentDownloadLink($ref_id)
Gets the permanent download link for the file.
static getListGUIData($a_obj_id)
getProperties()
Get item properties.
getTitle()
getTitle overwritten in class.ilObjLinkResourceList.php
getCommandImage($a_cmd)
Get command link url.
getCommandLink($a_cmd)
Get command link url.
getIconImageType()
Returns the icon image type.
getCommandFrame($a_cmd)
Get command target frame.
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.