|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
File storage handling. More...
Inheritance diagram for ilRestFileStorage:
Collaboration diagram for ilRestFileStorage:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getFile ($name) | |
| Get file by md5 hash. More... | |
| createFile () | |
| Get file by md5 hash. More... | |
| storeFileForRest ($content) | |
| getStoredFilePath ($tmpname) | |
| deleteDeprecated () | |
| Delete deprecated files. More... | |
Public Member Functions inherited from ilFileSystemStorage | |
| __construct ($a_storage_type, $a_path_conversion, $a_container_id) | |
| Constructor. More... | |
| getContainerId () | |
| create () | |
| Create directory. More... | |
| getAbsolutePath () | |
| Get absolute path of storage directory. More... | |
| writeToFile ($a_data, $a_absolute_path) | |
| Write data to file. More... | |
| deleteFile ($a_abs_name) | |
| Delete file. More... | |
| deleteDirectory ($a_abs_name) | |
| Delete directory. More... | |
| delete () | |
| Delete complete directory. More... | |
| copyFile ($a_from, $a_to) | |
| Copy files. More... | |
| appendToPath ($a_appendix) | |
| getStorageType () | |
| getPath () | |
| Get path. More... | |
| __construct ($a_storage_type, $a_path_conversion, $a_container_id) | |
| Constructor. More... | |
| create () | |
| Create directory. More... | |
| getAbsolutePath () | |
| Get absolute path of storage directory. More... | |
| getShortPath () | |
| rename ($from, $to) | |
Data Fields | |
| const | AVAILABILITY_IN_DAYS = 1 |
Data Fields inherited from ilFileSystemStorage | |
| const | STORAGE_WEB = 1 |
| const | STORAGE_DATA = 2 |
| const | STORAGE_SECURED = 3 |
| const | FACTOR = 100 |
| const | MAX_EXPONENT = 3 |
| const | SECURED_DIRECTORY = "sec" |
Protected Member Functions | |
| checkWebserviceActivation () | |
| Check if soap administration is enabled. More... | |
| getPathPrefix () | |
| Get path prefix. More... | |
| getPathPostfix () | |
| Get path prefix. More... | |
| init () | |
| init and create directory More... | |
| responeNotFound () | |
| Send not found response. More... | |
| getPathPrefix () | |
| Get path prefix. More... | |
| getPathPostfix () | |
| Get directory name. More... | |
| init () | |
| Read path info. More... | |
| getPathPrefix () | |
| Get path prefix. More... | |
| getPathPostfix () | |
| Get directory name. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilFileSystemStorage | |
| static | _createPathFromId ($a_container_id, $a_name) |
| Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5. More... | |
| static | _copyDirectory ($a_source, $a_target) |
| Copy directory and all contents. More... | |
| static | _createPathFromId ($a_container_id, $a_name) |
| Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5. More... | |
Protected Attributes inherited from ilFileSystemStorage | |
| $path | |
File storage handling.
Definition at line 12 of file class.ilRestFileStorage.php.
| ilRestFileStorage::__construct | ( | ) |
Constructor.
Definition at line 20 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\STORAGE_DATA.
|
protected |
Check if soap administration is enabled.
Definition at line 32 of file class.ilRestFileStorage.php.
References $GLOBALS, and Slim\getInstance().
Referenced by createFile(), and getFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRestFileStorage::createFile | ( | ) |
Get file by md5 hash.
| <type> | $name |
Definition at line 125 of file class.ilRestFileStorage.php.
References $GLOBALS, ilFileSystemStorage\$path, checkWebserviceActivation(), Slim\getInstance(), ilFileSystemStorage\getPath(), ilUtil\ilTempnam(), and ilFileSystemStorage\writeToFile().
Here is the call graph for this function:| ilRestFileStorage::deleteDeprecated | ( | ) |
Delete deprecated files.
Definition at line 164 of file class.ilRestFileStorage.php.
References $file, $GLOBALS, and ilFileSystemStorage\getPath().
Here is the call graph for this function:| ilRestFileStorage::getFile | ( | $name | ) |
Get file by md5 hash.
| <type> | $name |
Definition at line 74 of file class.ilRestFileStorage.php.
References $GLOBALS, $real_path, checkWebserviceActivation(), Slim\getInstance(), ilFileSystemStorage\getPath(), and responeNotFound().
Here is the call graph for this function:
|
protected |
Get path prefix.
Reimplemented from ilFileSystemStorage.
Definition at line 56 of file class.ilRestFileStorage.php.
|
protected |
Get path prefix.
Reimplemented from ilFileSystemStorage.
Definition at line 48 of file class.ilRestFileStorage.php.
| ilRestFileStorage::getStoredFilePath | ( | $tmpname | ) |
Definition at line 156 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\getPath().
Here is the call graph for this function:
|
protected |
init and create directory
Reimplemented from ilFileSystemStorage.
Definition at line 64 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\create().
Here is the call graph for this function:
|
protected |
Send not found response.
Definition at line 113 of file class.ilRestFileStorage.php.
References $GLOBALS, and Slim\getInstance().
Referenced by getFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRestFileStorage::storeFileForRest | ( | $content | ) |
Definition at line 147 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\$path, ilFileSystemStorage\getPath(), ilUtil\ilTempnam(), and ilFileSystemStorage\writeToFile().
Here is the call graph for this function:| const ilRestFileStorage::AVAILABILITY_IN_DAYS = 1 |
Definition at line 14 of file class.ilRestFileStorage.php.