ILIAS
release_8 Revision v8.19
|
File storage handling. More...
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) | |
![]() | |
__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 () | |
getPathPostfix () | |
init () | |
init and create directory More... | |
responeNotFound (Response $response) | |
Send 403. More... | |
![]() | |
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 |
![]() | |
string | $path = null |
ILIAS Filesystem Filesystems | $file_system_service |
Private Attributes | |
const | AVAILABILITY_IN_DAYS = 1 |
$logger | |
Additional Inherited Members | |
![]() | |
static | createPathFromId (int $a_container_id, string $a_name) |
static | _copyDirectory (string $a_sdir, string $a_tdir) |
![]() | |
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.
|
protected |
Definition at line 38 of file class.ilRestFileStorage.php.
References ILIAS\Repository\logger(), and ILIAS\Repository\settings().
Referenced by createFile(), and getFile().
ilRestFileStorage::createFile | ( | Request | $request, |
Response | $response | ||
) |
Create new file from post.
Definition at line 125 of file class.ilRestFileStorage.php.
References ilFileSystemAbstractionStorage\$path, checkWebserviceActivation(), ilFileSystemAbstractionStorage\getPath(), ilFileUtils\ilTempnam(), and writeToFile().
ilRestFileStorage::deleteDeprecated | ( | ) |
Delete deprecated files.
Definition at line 162 of file class.ilRestFileStorage.php.
References Vendor\Package\$e, ilFileSystemAbstractionStorage\getPath(), and ILIAS\Repository\logger().
ilRestFileStorage::getFile | ( | Request | $request, |
Response | $response | ||
) |
Definition at line 71 of file class.ilRestFileStorage.php.
References checkWebserviceActivation(), ilFileSystemAbstractionStorage\getPath(), ILIAS\Repository\logger(), and responeNotFound().
|
protected |
Definition at line 56 of file class.ilRestFileStorage.php.
|
protected |
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().
|
protected |
init and create directory
Definition at line 64 of file class.ilRestFileStorage.php.
References ilFileSystemAbstractionStorage\create().
|
protected |
Send 403.
\Slim\Http\Response | $response |
Definition at line 113 of file class.ilRestFileStorage.php.
Referenced by getFile().
ilRestFileStorage::storeFileForRest | ( | string | $content | ) |
Definition at line 145 of file class.ilRestFileStorage.php.
References ilFileSystemAbstractionStorage\$path, ilFileSystemAbstractionStorage\getPath(), ilFileUtils\ilTempnam(), and writeToFile().
ilRestFileStorage::writeToFile | ( | $a_data, | |
$a_absolute_path | |||
) |
Definition at line 177 of file class.ilRestFileStorage.php.
Referenced by createFile(), and storeFileForRest().
|
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.