|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
File storage handling. More...
Inheritance diagram for ilRestFileStorage:
Collaboration diagram for ilRestFileStorage:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getFile (\Slim\Http\Request $request, \Slim\Http\Response $response) | |
| createFile (\Slim\Http\Request $request, \Slim\Http\Response $response) | |
| Create new file from post. 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 (\Slim\Http\Request $request, \Slim\Http\Response $response) | |
| getPathPrefix () | |
| Get path prefix. More... | |
| getPathPostfix () | |
| Get path prefix. More... | |
| init () | |
| init and create directory More... | |
| responeNotFound (\Slim\Http\Response $response) | |
| Send 403. 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... | |
Private Attributes | |
| $logger = null | |
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 25 of file class.ilRestFileStorage.php.
References $DIC, and ilFileSystemStorage\STORAGE_DATA.
|
protected |
| \Slim\Http\Request | $request | |
| \Slim\Http\Response | $response |
Definition at line 44 of file class.ilRestFileStorage.php.
References $DIC, and $response.
Referenced by createFile(), and getFile().
Here is the caller graph for this function:| ilRestFileStorage::createFile | ( | \Slim\Http\Request | $request, |
| \Slim\Http\Response | $response | ||
| ) |
Create new file from post.
| \Slim\Http\Request | $request | |
| \Slim\Http\Response | $response |
Definition at line 150 of file class.ilRestFileStorage.php.
References $failure, ilFileSystemStorage\$path, $response, checkWebserviceActivation(), ilFileSystemStorage\getPath(), ilUtil\ilTempnam(), and ilFileSystemStorage\writeToFile().
Here is the call graph for this function:| ilRestFileStorage::deleteDeprecated | ( | ) |
Delete deprecated files.
Definition at line 193 of file class.ilRestFileStorage.php.
References $file, and ilFileSystemStorage\getPath().
Here is the call graph for this function:| ilRestFileStorage::getFile | ( | \Slim\Http\Request | $request, |
| \Slim\Http\Response | $response | ||
| ) |
| \Slim\Http\Request | $request | |
| \Slim\Http\Response | $response |
Definition at line 90 of file class.ilRestFileStorage.php.
References $failure, $response, checkWebserviceActivation(), ilFileSystemStorage\getPath(), and responeNotFound().
Here is the call graph for this function:
|
protected |
Get path prefix.
Reimplemented from ilFileSystemStorage.
Definition at line 72 of file class.ilRestFileStorage.php.
|
protected |
Get path prefix.
Reimplemented from ilFileSystemStorage.
Definition at line 64 of file class.ilRestFileStorage.php.
| ilRestFileStorage::getStoredFilePath | ( | $tmpname | ) |
| $tmpname |
Definition at line 185 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 80 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\create().
Here is the call graph for this function:
|
protected |
Send 403.
| \Slim\Http\Response | $response |
Definition at line 134 of file class.ilRestFileStorage.php.
References $response.
Referenced by getFile().
Here is the caller graph for this function:| ilRestFileStorage::storeFileForRest | ( | $content | ) |
Definition at line 172 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\$path, ilFileSystemStorage\getPath(), ilUtil\ilTempnam(), and ilFileSystemStorage\writeToFile().
Here is the call graph for this function:
|
private |
Definition at line 19 of file class.ilRestFileStorage.php.
| const ilRestFileStorage::AVAILABILITY_IN_DAYS = 1 |
Definition at line 14 of file class.ilRestFileStorage.php.