|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Access class for file objects. More...
Inheritance diagram for ilObjFileAccess:
Collaboration diagram for ilObjFileAccess:Public Member Functions | |
| canBeDelivered (ilWACPath $ilWACPath) | |
| _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null) | |
| checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More... | |
Public Member Functions inherited from ilObjectAccess | |
| _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null) | |
| Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) 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 (string $a_target) |
| check whether goto script will succeed More... | |
| static | _shouldDownloadDirectly (int $obj_id) |
| static | _lookupFileSize (int $a_id, bool $by_reference=true) |
| static | _getFileExtension (string $a_file_name) |
| Gets the file extension of the specified file name. More... | |
| static | _isFileHidden (string $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) |
| Appends the text " - Copy" to a filename in the language of the current user. More... | |
| static | _getPermanentDownloadLink (int $ref_id) |
| Gets the permanent download link for the file. More... | |
| static | _preloadData (array $obj_ids, array $ref_ids) |
| static | _lookupOnline (int $a_obj_id) |
Static Public Member Functions inherited from ilObjectAccess | |
| static | _getCommands () |
| get commands More... | |
| static | _checkGoto (string $target) |
| check whether goto script will succeed More... | |
| static | _isOffline (int $obj_id) |
| Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More... | |
| static | _preloadData (array $obj_ids, array $ref_ids) |
| Preload data. More... | |
Static Protected Attributes | |
| static array | $inline_file_extensions = [] |
| Contains an array of extensions separated by space. More... | |
| static array | $preload_list_gui_data = [] |
Access class for file objects.
Definition at line 30 of file class.ilObjFileAccess.php.
|
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 280 of file class.ilObjFileAccess.php.
Referenced by ilContainerGUI\performPasteIntoMultipleObjectsObject().
Here is the caller graph for this function:| ilObjFileAccess::_checkAccess | ( | string | $cmd, |
| string | $permission, | ||
| int | $ref_id, | ||
| int | $obj_id, | ||
| ?int | $user_id = null |
||
| ) |
checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess)
Definition at line 124 of file class.ilObjFileAccess.php.
References $DIC, $lng, $user_id, ilAccessInfo\IL_NO_OBJECT_ACCESS, and ilAccessInfo\IL_STATUS_MESSAGE.
|
static |
check whether goto script will succeed
Definition at line 173 of file class.ilObjFileAccess.php.
References $DIC, and ilSharedResourceGUI\hasAccess().
Here is the call graph for this function:
|
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 73 of file class.ilObjFileAccess.php.
Referenced by ilObjFileListGUI\init().
Here is the caller graph for this function:
|
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".
Definition at line 237 of file class.ilObjFileAccess.php.
|
static |
Gets the permanent download link for the file.
Definition at line 348 of file class.ilObjFileAccess.php.
References ilLink\_getStaticLink().
Referenced by ilObjFileGUI\buildInfoScreen().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns true, if a file with the specified name, is usually hidden from the user.
Definition at line 253 of file class.ilObjFileAccess.php.
Referenced by ilItemGroupItems\getAssignableItems(), ILIAS\Export\ExportHandler\Manager\Handler\getObjectIdCollectionBuilderFrom(), ilContainer\getSubItems(), ILIAS\Style\Content\ItemSetManager\groupItems(), ilObjFile\isHidden(), and ilExportSelectionTableGUI\parseContainer().
Here is the caller graph for this function:
|
static |
Definition at line 218 of file class.ilObjFileAccess.php.
Referenced by ilCheckSumOfWorkspaceFileSizesJob\calculateRecursive(), and ilCheckSumOfFileSizesJob\calculateRecursive().
Here is the caller graph for this function:
|
static |
Definition at line 363 of file class.ilObjFileAccess.php.
|
static |
|
static |
Definition at line 196 of file class.ilObjFileAccess.php.
References $DIC, and ilObjFile\CLICK_MODE_DOWNLOAD.
Referenced by ilObjFileListGUI\getCommandLink().
Here is the caller graph for this function:| ilObjFileAccess::canBeDelivered | ( | ilWACPath | $ilWACPath | ) |
Implements ilWACCheckingClass.
Definition at line 57 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 37 of file class.ilObjFileAccess.php.
|
staticprotected |
Definition at line 39 of file class.ilObjFileAccess.php.