ILIAS
release_4-3 Revision
|
File storage handling. More...
Public Member Functions | |
__construct () | |
Constructor. | |
getFile ($name) | |
Get file by md5 hash. | |
createFile () | |
Get file by md5 hash. | |
storeFileForRest ($content) | |
getStoredFilePath ($tmpname) | |
deleteDeprecated () | |
Delete deprecated files. | |
Public Member Functions inherited from ilFileSystemStorage | |
__construct ($a_storage_type, $a_path_conversion, $a_container_id) | |
Constructor. | |
getContainerId () | |
create () | |
Create directory. | |
getAbsolutePath () | |
Get absolute path of storage directory. | |
writeToFile ($a_data, $a_absolute_path) | |
Write data to file. | |
deleteFile ($a_abs_name) | |
Delete file. | |
deleteDirectory ($a_abs_name) | |
Delete directory. | |
delete () | |
Delete complete directory. | |
copyFile ($a_from, $a_to) | |
Copy files. | |
appendToPath ($a_appendix) | |
getStorageType () | |
getPath () | |
Get path. | |
__construct ($a_storage_type, $a_path_conversion, $a_container_id) | |
Constructor. | |
create () | |
Create directory. | |
getAbsolutePath () | |
Get absolute path of storage directory. | |
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 | FACTOR = 100 |
const | MAX_EXPONENT = 3 |
Protected Member Functions | |
getPathPrefix () | |
Get path prefix. | |
getPathPostfix () | |
Get path prefix. | |
init () | |
init and create directory |
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. | |
_copyDirectory ($a_source, $a_target) | |
Copy directory and all contents. | |
static | _createPathFromId ($a_container_id, $a_name) |
Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5. | |
Protected Attributes inherited from ilFileSystemStorage | |
$path |
File storage handling.
Definition at line 12 of file class.ilRestFileStorage.php.
ilRestFileStorage::__construct | ( | ) |
Constructor.
Definition at line 21 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\STORAGE_DATA.
ilRestFileStorage::createFile | ( | ) |
Get file by md5 hash.
<type> | $name |
Definition at line 79 of file class.ilRestFileStorage.php.
References $GLOBALS, ilFileSystemStorage\$path, Slim\getInstance(), ilFileSystemStorage\getPath(), ilUtil\ilTempnam(), and ilFileSystemStorage\writeToFile().
ilRestFileStorage::deleteDeprecated | ( | ) |
Delete deprecated files.
Definition at line 113 of file class.ilRestFileStorage.php.
References $file, $GLOBALS, and ilFileSystemStorage\getPath().
ilRestFileStorage::getFile | ( | $name | ) |
Get file by md5 hash.
<type> | $name |
Definition at line 59 of file class.ilRestFileStorage.php.
References $GLOBALS, Slim\getInstance(), and ilFileSystemStorage\getPath().
|
protected |
Get path prefix.
Reimplemented from ilFileSystemStorage.
Definition at line 41 of file class.ilRestFileStorage.php.
|
protected |
Get path prefix.
Reimplemented from ilFileSystemStorage.
Definition at line 33 of file class.ilRestFileStorage.php.
ilRestFileStorage::getStoredFilePath | ( | $tmpname | ) |
Definition at line 105 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\getPath().
|
protected |
init and create directory
Reimplemented from ilFileSystemStorage.
Definition at line 49 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\create().
ilRestFileStorage::storeFileForRest | ( | $content | ) |
Definition at line 96 of file class.ilRestFileStorage.php.
References ilFileSystemStorage\$path, ilFileSystemStorage\getPath(), ilUtil\ilTempnam(), and ilFileSystemStorage\writeToFile().
const ilRestFileStorage::AVAILABILITY_IN_DAYS = 1 |
Definition at line 15 of file class.ilRestFileStorage.php.