|
ILIAS
release_8 Revision v8.24
|
File storage handling. More...
Inheritance diagram for ilRestFileStorage:
Collaboration diagram for ilRestFileStorage:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getFile (Request $request, Response $response) | |
| createFile (Request $request, Response $response) | |
| Create new file from post. More... | |
| storeFileForRest (string $content) | |
| getStoredFilePath (string $tmpname) | |
| deleteDeprecated () | |
| Delete deprecated files. More... | |
| writeToFile ($a_data, $a_absolute_path) | |
Public Member Functions inherited from ilFileSystemAbstractionStorage | |
| __construct (int $a_storage_type, bool $a_path_conversion, int $a_container_id) | |
| Constructor. More... | |
| fileExists (string $a_absolute_path) | |
| getContainerId () | |
| writeToFile (string $a_data, $a_absolute_path) | |
| copyFile (string $a_from, string $a_to) | |
| create () | |
| getAbsolutePath () | |
| Calculates the full path on the filesystem. More... | |
| delete () | |
| deleteDirectory (string $a_abs_name) | |
| deleteFile (string $a_abs_name) | |
| appendToPath (string $a_appendix) | |
| getStorageType () | |
| getPath () | |
Protected Member Functions | |
| checkWebserviceActivation (Request $request, Response $response) | |
| getPathPrefix () | |
| Get path prefix. More... | |
| getPathPostfix () | |
| Get directory name. More... | |
| init () | |
| init and create directory More... | |
| responeNotFound (Response $response) | |
| Send 403. More... | |
Protected Member Functions inherited from ilFileSystemAbstractionStorage | |
| getLegacyFullAbsolutePath (string $relative_path) | |
| getFileSystemService () | |
| getPathPrefix () | |
| Get path prefix. More... | |
| getPathPostfix () | |
| Get directory name. More... | |
| getLegacyAbsolutePath () | |
| Calculates the absolute filesystem storage location. More... | |
| init () | |
Protected Attributes | |
| ilSetting | $settings |
Protected Attributes inherited from ilFileSystemAbstractionStorage | |
| string | $path = null |
| ILIAS Filesystem Filesystems | $file_system_service |
Private Attributes | |
| const | AVAILABILITY_IN_DAYS = 1 |
| $logger | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilFileSystemAbstractionStorage | |
| static | createPathFromId (int $a_container_id, string $a_name) |
| static | _copyDirectory (string $a_sdir, string $a_tdir) |
Data Fields inherited from ilFileSystemAbstractionStorage | |
| const | STORAGE_WEB = 1 |
| const | STORAGE_DATA = 2 |
| const | STORAGE_SECURED = 3 |
File storage handling.
Definition at line 14 of file class.ilRestFileStorage.php.
| ilRestFileStorage::__construct | ( | ) |
Constructor.
Definition at line 25 of file class.ilRestFileStorage.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\logger(), ILIAS\Repository\settings(), and ilFileSystemAbstractionStorage\STORAGE_DATA.
Here is the call graph for this function:
|
protected |
Definition at line 38 of file class.ilRestFileStorage.php.
References ILIAS\Repository\logger(), and ILIAS\Repository\settings().
Referenced by createFile(), and getFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRestFileStorage::createFile | ( | Request | $request, |
| Response | $response | ||
| ) |
Create new file from post.
Definition at line 125 of file class.ilRestFileStorage.php.
References ilFileSystemAbstractionStorage\$path, $response, checkWebserviceActivation(), ilFileSystemAbstractionStorage\getPath(), ilFileUtils\ilTempnam(), and writeToFile().
Here is the call graph for this function:| ilRestFileStorage::deleteDeprecated | ( | ) |
Delete deprecated files.
Definition at line 162 of file class.ilRestFileStorage.php.
References Vendor\Package\$e, ilFileSystemAbstractionStorage\getPath(), and ILIAS\Repository\logger().
Here is the call graph for this function:| ilRestFileStorage::getFile | ( | Request | $request, |
| Response | $response | ||
| ) |
Definition at line 71 of file class.ilRestFileStorage.php.
References $response, checkWebserviceActivation(), ilFileSystemAbstractionStorage\getPath(), ILIAS\Repository\logger(), and responeNotFound().
Here is the call graph for this function:
|
protected |
Get directory name.
E.g for files => file Only relative path, no trailing slash '_<obj_id>' will be appended automatically
Reimplemented from ilFileSystemAbstractionStorage.
Definition at line 56 of file class.ilRestFileStorage.php.
|
protected |
Get path prefix.
Prefix that will be prepended to the path No trailing slash. E.g ilFiles for files
Reimplemented from ilFileSystemAbstractionStorage.
Definition at line 51 of file class.ilRestFileStorage.php.
| ilRestFileStorage::getStoredFilePath | ( | string | $tmpname | ) |
Definition at line 154 of file class.ilRestFileStorage.php.
References ilFileSystemAbstractionStorage\getPath().
Here is the call graph for this function:
|
protected |
init and create directory
Reimplemented from ilFileSystemAbstractionStorage.
Definition at line 64 of file class.ilRestFileStorage.php.
References ilFileSystemAbstractionStorage\create().
Here is the call graph for this function:
|
protected |
Send 403.
| \Slim\Http\Response | $response |
Definition at line 113 of file class.ilRestFileStorage.php.
References $response.
Referenced by getFile().
Here is the caller graph for this function:| ilRestFileStorage::storeFileForRest | ( | string | $content | ) |
Definition at line 145 of file class.ilRestFileStorage.php.
References ilFileSystemAbstractionStorage\$path, ilFileSystemAbstractionStorage\getPath(), ilFileUtils\ilTempnam(), and writeToFile().
Here is the call graph for this function:| ilRestFileStorage::writeToFile | ( | $a_data, | |
| $a_absolute_path | |||
| ) |
Definition at line 177 of file class.ilRestFileStorage.php.
Referenced by createFile(), and storeFileForRest().
Here is the caller graph for this function:
|
private |
Definition at line 18 of file class.ilRestFileStorage.php.
|
protected |
Definition at line 20 of file class.ilRestFileStorage.php.
|
private |
Definition at line 16 of file class.ilRestFileStorage.php.