|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for ilFileSystemStorage5069:
Collaboration diagram for ilFileSystemStorage5069: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.
@access 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().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
|
static |
Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5.
@access public
| int | container id |
| string | name |
Definition at line 79 of file class.ilFileSystemStorage5069.php.
Referenced by init().
Here is the caller graph for this function:| ilFileSystemStorage5069::appendToPath | ( | $a_appendix | ) |
Definition at line 278 of file class.ilFileSystemStorage5069.php.
| ilFileSystemStorage5069::copyFile | ( | $a_from, | |
| $a_to | |||
| ) |
Copy files.
@access public
| string | absolute source |
| string | absolute target |
Definition at line 258 of file class.ilFileSystemStorage5069.php.
| ilFileSystemStorage5069::create | ( | ) |
Create directory.
@access public
Reimplemented in ilFSStorageExercise5069.
Definition at line 128 of file class.ilFileSystemStorage5069.php.
References ilUtil\makeDirParents().
Here is the call graph for this function:| ilFileSystemStorage5069::delete | ( | ) |
Delete complete directory.
@access public
Definition at line 244 of file class.ilFileSystemStorage5069.php.
References ilUtil\delDir(), and getAbsolutePath().
Here is the call graph for this function:| ilFileSystemStorage5069::deleteDirectory | ( | $a_abs_name | ) |
Delete directory.
@access public
| string | absolute name |
Definition at line 227 of file class.ilFileSystemStorage5069.php.
References ilUtil\delDir().
Here is the call graph for this function:| ilFileSystemStorage5069::deleteFile | ( | $a_abs_name | ) |
Delete file.
@access public
| string | absolute name |
Definition at line 211 of file class.ilFileSystemStorage5069.php.
| ilFileSystemStorage5069::getAbsolutePath | ( | ) |
Get absolute path of storage directory.
@access public
Definition at line 143 of file class.ilFileSystemStorage5069.php.
References $path.
Referenced by delete(), and ilFSStorageExercise5069\getAssignmentFilePath().
Here is the caller graph for this function:| ilFileSystemStorage5069::getContainerId | ( | ) |
Definition at line 65 of file class.ilFileSystemStorage5069.php.
References $container_id.
| ilFileSystemStorage5069::getPath | ( | ) |
|
abstractprotected |
Get directory name.
E.g for files => file Only relative path, no trailing slash '_<obj_id>' will be appended automatically
@abstract @access protected
Reimplemented in ilFSStorageExercise5069.
Referenced by init().
Here is the caller graph for this function:
|
abstractprotected |
Get path prefix.
Prefix that will be prepended to the path No trailing slash. E.g ilFiles for files
@abstract @access protected
Reimplemented in ilFSStorageExercise5069.
Referenced by init().
Here is the caller graph for this function:| ilFileSystemStorage5069::getStorageType | ( | ) |
Definition at line 283 of file class.ilFileSystemStorage5069.php.
References $storage_type.
|
protected |
Read path info.
@access private
Reimplemented in ilFSStorageExercise5069.
Definition at line 153 of file class.ilFileSystemStorage5069.php.
References $container_id, _createPathFromId(), ilUtil\getDataDir(), getPathPostfix(), getPathPrefix(), ilUtil\getWebspaceDir(), ilUtil\removeTrailingPathSeparators(), SECURED_DIRECTORY, STORAGE_DATA, STORAGE_SECURED, and STORAGE_WEB.
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemStorage5069::writeToFile | ( | $a_data, | |
| $a_absolute_path | |||
| ) |
Write data to file.
@access 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.
Referenced by init().
| const ilFileSystemStorage5069::STORAGE_DATA = 2 |
Definition at line 33 of file class.ilFileSystemStorage5069.php.
Referenced by init().
| const ilFileSystemStorage5069::STORAGE_SECURED = 3 |
Definition at line 34 of file class.ilFileSystemStorage5069.php.
Referenced by init().
| const ilFileSystemStorage5069::STORAGE_WEB = 1 |
Definition at line 32 of file class.ilFileSystemStorage5069.php.
Referenced by init().