ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Access class for file objects. More...
Public Member Functions | ||||
canBeDelivered (ilWACPath $ilWACPath) | ||||
isMigrated () | ||||
_lookupVersion ($a_id) | ||||
lookup version More... | ||||
_lookupFileSize ($a_id) | ||||
lookup size More... | ||||
![]() | ||||
_checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="") | ||||
Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More... | ||||
_checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id) | ||||
check condition More... | ||||
canBeDelivered (ilWACPath $ilWACPath) | ||||
| ||||
Static Public Member Functions | |
static | _getCommands () |
get commands this method returns an array of all possible commands/permission combinations example: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), ); More... | |
static | _checkGoto ($a_target) |
check whether goto script will succeed More... | |
static | _lookupFileData ($a_id) |
looks up the file_data for the file object with the specified object id as an associative array. More... | |
static | _lookupVersion ($a_id) |
lookup version More... | |
static | _lookupFileSize ($a_id) |
static | _lookupFileSizeFromFilesystem ($a_id) |
Looks up the file size by retrieving it from the filesystem. More... | |
static | _lookupSuffix ($a_id) |
lookup suffix More... | |
static | _lookupDiskUsage ($a_id) |
Returns the number of bytes used on the harddisk by the file object with the specified object id. More... | |
static | _isFileInline ($a_file_name) |
Returns true, if the specified file shall be displayed inline in the browser. More... | |
static | _getFileExtension ($a_file_name) |
Gets the file extension of the specified file name. More... | |
static | _isFileHidden ($a_file_name) |
Returns true, if a file with the specified name, is usually hidden from the user. More... | |
static | _appendNumberOfCopyToFilename ($a_file_name, $nth_copy=null, $a_handle_extension=false) |
Appends the text " - Copy" to a filename in the language of the current user. More... | |
static | _getPermanentDownloadLink ($ref_id) |
Gets the permanent download link for the file. More... | |
static | getListGUIData ($a_obj_id) |
![]() | |
static | _getCommands () |
get commands More... | |
static | _checkGoto ($a_target) |
check whether goto script will succeed More... | |
static | _isOffline ($a_obj_id) |
Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More... | |
static | _preloadData ($a_obj_ids, $a_ref_ids) |
Preload data. More... | |
Static Protected Attributes | |
static | $_inlineFileExtensionsArray |
Contains an array of extensions separated by space. More... | |
static | $preload_list_gui_data |
|
static |
Appends the text " - Copy" to a filename in the language of the current user.
If the provided $nth_copy parameter is greater than 1, then is appended in round brackets. If $nth_copy parameter is null, then the function determines the copy number on its own. If this function detects, that the filename already ends with " - Copy", or with "- Copy ($nth_copy), it only appends the number of the copy to the filename. This function retains the extension of the filename. Examples:
Definition at line 330 of file class.ilObjFileAccess.php.
References $DIC, $lng, and _getFileExtension().
Referenced by ilObject\appendCopyInfo(), and ilContainerGUI\performPasteIntoMultipleObjectsObject().
|
static |
check whether goto script will succeed
Definition at line 107 of file class.ilObjFileAccess.php.
References $DIC, and ilSharedResourceGUI\hasAccess().
|
static |
get commands this method returns an array of all possible commands/permission combinations example: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );
Definition at line 81 of file class.ilObjFileAccess.php.
Referenced by ilObjFileListGUI\init().
|
static |
Gets the file extension of the specified file name.
The file name extension is converted to lower case before it is returned. For example, for the file name "HELLO.MP3", this function returns "mp3". A file name extension can have multiple parts. For the file name "hello.tar.gz", this function returns "gz".
string | $a_file_name | The file name |
Definition at line 285 of file class.ilObjFileAccess.php.
Referenced by _appendNumberOfCopyToFilename(), ilObjFile\checkFileExtension(), ilObjFileImplementationLegacy\getFileExtension(), ilObjFileListGUI\getProperties(), and ilFilePreviewRenderer\supports().
|
static |
Gets the permanent download link for the file.
int | $ref_id |
Definition at line 401 of file class.ilObjFileAccess.php.
References $DIC, $res, ilLink\_getStaticLink(), and ilObjectAccess\_preloadData().
Referenced by ilObjFileListGUI\getCommandLink(), and ilObjFileGUI\infoScreenForward().
|
static |
Returns true, if a file with the specified name, is usually hidden from the user.
Definition at line 302 of file class.ilObjFileAccess.php.
Referenced by ilItemGroupItems\getAssignableItems(), ilObjectListGUI\getListItemHTML(), ilContainer\getSubItems(), ilObjFile\isHidden(), and ilExportSelectionTableGUI\parseContainer().
|
static |
Returns true, if the specified file shall be displayed inline in the browser.
Definition at line 258 of file class.ilObjFileAccess.php.
Referenced by ilObjFileListGUI\getCommandFrame(), ilObjFileListGUI\getIconImageType(), ilObjFileImplementationLegacy\isInline(), and ilObjFile\isInline().
|
static |
Returns the number of bytes used on the harddisk by the file object with the specified object id.
int | object id of a file object. |
Definition at line 244 of file class.ilObjFileAccess.php.
References ilUtil\dirsize().
|
static |
looks up the file_data for the file object with the specified object id as an associative array.
Definition at line 138 of file class.ilObjFileAccess.php.
References $DIC, $ilDB, and ilDBConstants\FETCHMODE_ASSOC.
Referenced by ilFilePreviewRenderer\supports().
ilObjFileAccess::_lookupFileSize | ( | $a_id | ) |
lookup size
Definition at line 44 of file class.ilObjFileAccess.php.
References $ilDB, $size, _lookupVersion(), and ilDBConstants\FETCHMODE_OBJECT.
|
static |
$a_id |
Definition at line 172 of file class.ilObjFileAccess.php.
References $DIC, $ilDB, $size, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjectXMLWriter\__appendObjectProperties(), ilPageObject\addFileSizes(), ilCheckSumOfFileSizesJob\calculateRecursive(), ilCheckSumOfWorkspaceFileSizesJob\calculateRecursive(), and ilObjFileGUI\infoScreenForward().
|
static |
Looks up the file size by retrieving it from the filesystem.
This function runs much slower than _lookupFileSize()! Use this function only, to update the data in the database. For example, if the file size in the database has become inconsistent for some reason.
Definition at line 192 of file class.ilObjFileAccess.php.
References $DIC, $ilDB, $size, _lookupVersion(), and ilDBConstants\FETCHMODE_OBJECT.
|
static |
lookup suffix
Definition at line 222 of file class.ilObjFileAccess.php.
References $DIC, $ilDB, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjectXMLWriter\__appendObjectProperties().
ilObjFileAccess::_lookupVersion | ( | $a_id | ) |
lookup version
Definition at line 30 of file class.ilObjFileAccess.php.
References $ilDB, and ilDBConstants\FETCHMODE_OBJECT.
|
static |
lookup version
Definition at line 153 of file class.ilObjFileAccess.php.
References $DIC, $ilDB, ilDBConstants\FETCHMODE_OBJECT, and ilUtil\stripSlashes().
Referenced by ilObjectXMLWriter\__appendObjectProperties(), _lookupFileSize(), and _lookupFileSizeFromFilesystem().
ilObjFileAccess::canBeDelivered | ( | ilWACPath | $ilWACPath | ) |
\ilWACPath | $ilWACPath |
Implements ilWACCheckingClass.
Definition at line 44 of file class.ilObjFileAccess.php.
References ilWACPath\getPath(), and ilWACPath\getSecurePathId().
|
static |
$a_obj_id |
Definition at line 463 of file class.ilObjFileAccess.php.
Referenced by ilObjFileListGUI\getProperties().
ilObjFileAccess::isMigrated | ( | ) |
Definition at line 272 of file class.ilObjFileAccess.php.
|
staticprotected |
Contains an array of extensions separated by space.
Since this array is needed for every file object displayed on a repository page, we only create it once, and cache it here.
Definition at line 66 of file class.ilObjFileAccess.php.
|
staticprotected |
Definition at line 69 of file class.ilObjFileAccess.php.