ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
File storage handling. More...
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... | |
Protected Member Functions inherited from ilFileSystemStorage | |
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().
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().
ilRestFileStorage::deleteDeprecated | ( | ) |
Delete deprecated files.
Definition at line 193 of file class.ilRestFileStorage.php.
References $file, ilFileSystemStorage\getPath(), and time.
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().
|
protected |
Get path prefix.
Definition at line 72 of file class.ilRestFileStorage.php.
|
protected |
Get path prefix.
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().
|
protected |
init and create directory
Definition at line 80 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\create().
|
protected |
Send 403.
\Slim\Http\Response | $response |
Definition at line 134 of file class.ilRestFileStorage.php.
Referenced by getFile().
ilRestFileStorage::storeFileForRest | ( | $content | ) |
Definition at line 172 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\$path, ilFileSystemStorage\getPath(), ilUtil\ilTempnam(), and ilFileSystemStorage\writeToFile().
|
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.