ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__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... | |
Static Public Member Functions | |
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... | |
Data Fields | |
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 | |
getPathPrefix () | |
Get path prefix. More... | |
getPathPostfix () | |
Get directory name. More... | |
init () | |
Read path info. More... | |
Protected Attributes | |
$path | |
Private Attributes | |
$container_id | |
$storage_type | |
$path_conversion = false | |
Definition at line 30 of file class.ilFileSystemStorage5069.php.
ilFileSystemStorage5069::__construct | ( | $a_storage_type, | |
$a_path_conversion, | |||
$a_container_id | |||
) |
Constructor.
public
int | storage type |
bool | En/Disable automatic path conversion. If enabled files with id 123 will be stored in directory files/1/file_123 |
int | object id of container (e.g file_id or mob_id) |
Definition at line 55 of file class.ilFileSystemStorage5069.php.
References init().
|
static |
Copy directory and all contents.
string | $a_source | absolute source path |
string | $a_target | absolute target path |
Definition at line 273 of file class.ilFileSystemStorage5069.php.
References ilUtil\rCopy().
|
static |
Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5.
public
int | container id |
string | name |
Definition at line 79 of file class.ilFileSystemStorage5069.php.
References $i, $path, array, getPathPostfix(), and getPathPrefix().
ilFileSystemStorage5069::appendToPath | ( | $a_appendix | ) |
Definition at line 278 of file class.ilFileSystemStorage5069.php.
ilFileSystemStorage5069::copyFile | ( | $a_from, | |
$a_to | |||
) |
Copy files.
public
string | absolute source |
string | absolute target |
Definition at line 258 of file class.ilFileSystemStorage5069.php.
ilFileSystemStorage5069::create | ( | ) |
Create directory.
public
Definition at line 128 of file class.ilFileSystemStorage5069.php.
References ilUtil\makeDirParents().
ilFileSystemStorage5069::delete | ( | ) |
Delete complete directory.
public
Definition at line 244 of file class.ilFileSystemStorage5069.php.
References ilUtil\delDir(), and getAbsolutePath().
ilFileSystemStorage5069::deleteDirectory | ( | $a_abs_name | ) |
Delete directory.
public
string | absolute name |
Definition at line 227 of file class.ilFileSystemStorage5069.php.
References ilUtil\delDir().
ilFileSystemStorage5069::deleteFile | ( | $a_abs_name | ) |
Delete file.
public
string | absolute name |
Definition at line 211 of file class.ilFileSystemStorage5069.php.
ilFileSystemStorage5069::getAbsolutePath | ( | ) |
Get absolute path of storage directory.
public
Definition at line 143 of file class.ilFileSystemStorage5069.php.
References $path.
Referenced by delete(), and ilFSStorageExercise5069\getAssignmentFilePath().
ilFileSystemStorage5069::getContainerId | ( | ) |
ilFileSystemStorage5069::getPath | ( | ) |
|
abstractprotected |
Get directory name.
E.g for files => file Only relative path, no trailing slash '_<obj_id>' will be appended automatically
protected
Referenced by _createPathFromId(), and init().
|
abstractprotected |
Get path prefix.
Prefix that will be prepended to the path No trailing slash. E.g ilFiles for files
protected
Referenced by _createPathFromId(), and init().
ilFileSystemStorage5069::getStorageType | ( | ) |
|
protected |
Read path info.
private
Definition at line 153 of file class.ilFileSystemStorage5069.php.
References $container_id, ilUtil\getDataDir(), getPathPostfix(), getPathPrefix(), ilUtil\getWebspaceDir(), and ilUtil\removeTrailingPathSeparators().
Referenced by __construct().
ilFileSystemStorage5069::writeToFile | ( | $a_data, | |
$a_absolute_path | |||
) |
Write data to file.
public
Definition at line 191 of file class.ilFileSystemStorage5069.php.
|
private |
Definition at line 40 of file class.ilFileSystemStorage5069.php.
Referenced by getContainerId(), and init().
|
protected |
Definition at line 44 of file class.ilFileSystemStorage5069.php.
Referenced by _createPathFromId(), getAbsolutePath(), ilFSStorageExercise5069\getFeedbackPath(), ilFSStorageExercise5069\getGlobalFeedbackPath(), ilFSStorageExercise5069\getMultiFeedbackUploadPath(), getPath(), and ilFSStorageExercise5069\getPeerReviewUploadPath().
|
private |
Definition at line 42 of file class.ilFileSystemStorage5069.php.
|
private |
Definition at line 41 of file class.ilFileSystemStorage5069.php.
Referenced by getStorageType().
const ilFileSystemStorage5069::FACTOR = 100 |
Definition at line 36 of file class.ilFileSystemStorage5069.php.
const ilFileSystemStorage5069::MAX_EXPONENT = 3 |
Definition at line 37 of file class.ilFileSystemStorage5069.php.
const ilFileSystemStorage5069::SECURED_DIRECTORY = "sec" |
Definition at line 38 of file class.ilFileSystemStorage5069.php.
const ilFileSystemStorage5069::STORAGE_DATA = 2 |
Definition at line 33 of file class.ilFileSystemStorage5069.php.
const ilFileSystemStorage5069::STORAGE_SECURED = 3 |
Definition at line 34 of file class.ilFileSystemStorage5069.php.
const ilFileSystemStorage5069::STORAGE_WEB = 1 |
Definition at line 32 of file class.ilFileSystemStorage5069.php.