5 include_once
"Services/Object/classes/class.ilObjectListGUI.php";
22 $this->delete_enabled =
true;
23 $this->cut_enabled =
true;
24 $this->copy_enabled =
true;
25 $this->subscribe_enabled =
true;
26 $this->link_enabled =
true;
27 $this->info_screen_enabled =
true;
29 $this->gui_class_name =
"ilobjfilegui";
32 include_once(
'./Modules/File/classes/class.ilObjFileAccess.php');
49 require_once(
'Modules/File/classes/class.ilObjFileAccess.php');
74 include_once(
'Modules/File/classes/class.ilObjFileAccess.php');
88 return preg_replace(
'/\\.[a-z0-9]+\\z/i',
'', $this->title);
104 $props = parent::getProperties();
110 if (!preg_match(
'/^\\.|\\.[a-zA-Z0-9]+$/', $this->title)) {
113 "property" => $DIC->language()->txt(
"filename_interoperability"),
114 "value" => $DIC->language()->txt(
"filename_extension_missing"),
115 'propertyNameVisible' =>
false,
121 "property" => $DIC->language()->txt(
"type"),
123 'propertyNameVisible' =>
false,
127 if (is_array($fileData)) {
130 "property" => $DIC->language()->txt(
"size"),
132 'propertyNameVisible' =>
false,
137 if (parent::checkCommandAccess(
"write",
"versions", $this->ref_id, $this->type)) {
139 $value =
"<a href=\"$link\">" . $DIC->language()->txt(
"version") .
": $version</a>";
141 $value = $DIC->language()->txt(
"version") .
": $version";
145 "property" => $DIC->language()->txt(
"version"),
147 "propertyNameVisible" =>
false,
152 if ($fileData[
"date"]) {
155 "property" => $DIC->language()->txt(
"last_update"),
157 'propertyNameVisible' =>
false,
161 if ($fileData[
"page_count"]) {
164 "property" => $DIC->language()->txt(
"page_count"),
165 "value" => $fileData[
"page_count"],
166 'propertyNameVisible' =>
true,
199 if ($a_cmd ==
"sendfile" && $this->context == self::CONTEXT_REPOSITORY) {
204 return parent::getCommandLink($a_cmd);
static _getPermanentDownloadLink($ref_id)
Gets the permanent download link for the file.
static _isFileInline($a_file_name)
Returns true, if the specified file shall be displayed inline in the browser.
getIconImageType()
Returns the icon image type.
static _getFileExtension($a_file_name)
Gets the file extension of the specified file name.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
static _getCommands()
get commands
getCommandFrame($a_cmd)
Get command target frame.
Create styles array
The data for the language used.
getProperties()
Get item properties.
static formatSize($size, $a_mode='short', $a_lng=null)
Returns the specified file size value in a human friendly form.
getCommandLink($a_cmd)
Get command link url.
getTitle()
getTitle overwritten in class.ilObjLinkResourceList.php
static getListGUIData($a_obj_id)
getCommandImage($a_cmd)
Get command icon image.