5include_once 
"Services/Object/classes/class.ilObjectListGUI.php";
 
   32                $this->delete_enabled = 
true;
 
   33                $this->cut_enabled = 
true;
 
   34                $this->copy_enabled = 
true;
 
   35                $this->subscribe_enabled = 
true;
 
   36                $this->link_enabled = 
true;
 
   37                $this->payment_enabled = 
true;
 
   38                $this->info_screen_enabled = 
true;
 
   40                $this->gui_class_name = 
"ilobjfilegui";
 
   43                include_once(
'./Modules/File/classes/class.ilObjFileAccess.php');
 
   56                if(IS_PAYMENT_ENABLED)
 
   58                        include_once 
'Services/Payment/classes/class.ilPaymentObject.php';
 
   70                                require_once(
'Modules/File/classes/class.ilObjFileAccess.php');
 
   98                include_once(
'Modules/File/classes/class.ilObjFileAccess.php');
 
  113                return preg_replace(
'/\\.[a-z0-9]+\\z/i',
'', $this->title);
 
  131                $props = parent::getProperties();
 
  135                include_once(
"./Modules/File/classes/class.ilObjFileAccess.php");
 
  139                if (! preg_match(
'/^\\.|\\.[a-zA-Z0-9]+$/', $this->title))
 
  141                                $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"filename_interoperability"),
 
  142                                        "value" => 
$lng->txt(
"filename_extension_missing"),
 
  143                                        'propertyNameVisible' => 
false);
 
  147                $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"type"),
 
  149                        'propertyNameVisible' => 
false 
  153                if(is_array($fileData))
 
  155                        $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"size"),
 
  157                                'propertyNameVisible' => 
false);
 
  158                        $version = $fileData[
'version'];
 
  162                                if (parent::checkCommandAccess(
"write", 
"versions", $this->ref_id, $this->type))
 
  165                                        $value = 
"<a href=\"$link\">".$lng->txt(
"version").
": $version</a>";
 
  169                                        $value = 
$lng->txt(
"version").
": $version";
 
  171                                $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"version"),
 
  173                                        "propertyNameVisible" => 
false);
 
  177                        if($fileData[
"date"])
 
  179                                $props[] = array(
"alert" => 
false, 
"property" => 
$lng->txt(
"last_update"),
 
  181                                        'propertyNameVisible' => 
false);
 
  228                if ($a_cmd == 
"sendfile" && $this->context == self::CONTEXT_REPOSITORY)
 
  234                return parent::getCommandLink($a_cmd);
 
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
_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
ilObjFileListGUI()
constructor
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.
ilObjectListGUI()
constructor
static _isBuyable($a_ref_id, $a_subtype='')
static _hasAccess($a_ref_id, $a_transaction=0, $a_subtype='')