| ILIAS
    Release_4_3_x_branch Revision 61807
    | 
 Inheritance diagram for ilFileSystemStorage:
 Inheritance diagram for ilFileSystemStorage: Collaboration diagram for ilFileSystemStorage:
 Collaboration diagram for ilFileSystemStorage:| Public Member Functions | |
| __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) | |
| 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. | |
| _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. | |
| Data Fields | |
| const | STORAGE_WEB = 1 | 
| const | STORAGE_DATA = 2 | 
| const | FACTOR = 100 | 
| const | MAX_EXPONENT = 3 | 
| Protected Member Functions | |
| getPathPrefix () | |
| Get path prefix. | |
| getPathPostfix () | |
| Get directory name. | |
| init () | |
| Read path info. | |
| getPathPrefix () | |
| Get path prefix. | |
| getPathPostfix () | |
| Get directory name. | |
| Protected Attributes | |
| $path | |
| Private Member Functions | |
| init () | |
| Read path info. | |
| Private Attributes | |
| $container_id | |
| $storage_type | |
| $path_conversion = false | |
| $short_path | |
Definition at line 34 of file class.ilFileSystemStorage.php.
| ilFileSystemStorage::__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 58 of file class.ilFileSystemStorage.php.
References init().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilFileSystemStorage::__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 50 of file class.ilFileSystemStorage.php.
References init().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Copy directory and all contents.
public
| string | absolute source path | 
| string | absolute target path | 
Definition at line 286 of file class.ilFileSystemStorage.php.
References ilUtil\rCopy().
Referenced by ilFSStorageCourse\_clone().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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 69 of file class.ilFileSystemStorage.php.
References $path.
| 
 | 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 82 of file class.ilFileSystemStorage.php.
References $path.
Referenced by ilExport\_getExportDirectory(), and init().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::appendToPath | ( | $a_appendix | ) | 
Definition at line 291 of file class.ilFileSystemStorage.php.
Referenced by ilFSStorageMail\__construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::copyFile | ( | $a_from, | |
| $a_to | |||
| ) | 
Copy files.
public
| string | absolute source | 
| string | absolute target | 
Definition at line 267 of file class.ilFileSystemStorage.php.
| ilFileSystemStorage::create | ( | ) | 
Create directory.
public
Reimplemented in ilFSStorageExercise.
Definition at line 121 of file class.ilFileSystemStorage.php.
References ilUpdateUtils\makeDirParents(), and ilUpdateUtils\removeTrailingPathSeparators().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilFileSystemStorage::create | ( | ) | 
Create directory.
public
Reimplemented in ilFSStorageExercise.
Definition at line 134 of file class.ilFileSystemStorage.php.
References ilUtil\makeDirParents().
Referenced by ilRestFileStorage\init().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::delete | ( | ) | 
Delete complete directory.
public
Definition at line 253 of file class.ilFileSystemStorage.php.
References ilUtil\delDir(), and getAbsolutePath().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilFileSystemStorage::deleteDirectory | ( | $a_abs_name | ) | 
Delete directory.
public
| string | absolute name | 
Definition at line 235 of file class.ilFileSystemStorage.php.
References ilUtil\delDir().
Referenced by ilFSStorageCourse\deleteArchive().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::deleteFile | ( | $a_abs_name | ) | 
Delete file.
public
| string | absolute name | 
Definition at line 218 of file class.ilFileSystemStorage.php.
Referenced by ilFSStorageCourse\deleteArchive(), ilFSStorageGroup\deleteMemberExportFile(), and ilFSStorageCourse\deleteMemberExportFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::getAbsolutePath | ( | ) | 
Get absolute path of storage directory.
public
Definition at line 137 of file class.ilFileSystemStorage.php.
References $path.
| ilFileSystemStorage::getAbsolutePath | ( | ) | 
Get absolute path of storage directory.
public
Definition at line 150 of file class.ilFileSystemStorage.php.
References $path.
Referenced by ilFSStorageSession\createDirectory(), ilFSStorageEvent\createDirectory(), delete(), ilFSStorageCourse\getArchiveDirectory(), ilFSStorageExercise\getAssignmentFilePath(), ilFSStorageCourse\getInfoDirectory(), ilFSStorageGroup\getMemberExportDirectory(), ilFSStorageCourse\getMemberExportDirectory(), and ilFSStorageMail\getRelativePathExMailDirectory().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::getContainerId | ( | ) | 
Definition at line 68 of file class.ilFileSystemStorage.php.
References $container_id.
Referenced by ilFSStorageGroup\getMemberExportFiles(), and ilFSStorageCourse\getMemberExportFiles().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::getPath | ( | ) | 
Get path.
Definition at line 304 of file class.ilFileSystemStorage.php.
References $path.
Referenced by ilRestFileStorage\createFile(), ilRestFileStorage\deleteDeprecated(), ilRestFileStorage\getFile(), ilRestFileStorage\getStoredFilePath(), and ilRestFileStorage\storeFileForRest().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | abstractprotected | 
Get directory name.
E.g for files => file Only relative path, no trailing slash '_<obj_id>' will be appended automatically
protected
Reimplemented in ilFSStorageCourse, ilFSStorageCourse, ilFSStorageGroup, ilFSStorageExercise, ilFSStorageSession, ilFSStorageEvent, ilFSStorageFile, ilFSStorageFile, ilRestFileStorage, ilFSStorageBlog, ilFSStorageBooking, ilFSStoragePoll, ilFSStorageMail, ilFSStoragePortfolio, ilFSStorageUserFolder, and ilVerificationStorageFile.
| 
 | abstractprotected | 
Get directory name.
E.g for files => file Only relative path, no trailing slash '_<obj_id>' will be appended automatically
protected
Reimplemented in ilFSStorageCourse, ilFSStorageCourse, ilFSStorageGroup, ilFSStorageExercise, ilFSStorageSession, ilFSStorageEvent, ilFSStorageFile, ilFSStorageFile, ilRestFileStorage, ilFSStorageBlog, ilFSStorageBooking, ilFSStoragePoll, ilFSStorageMail, ilFSStoragePortfolio, ilFSStorageUserFolder, and ilVerificationStorageFile.
Referenced by init().
 Here is the caller graph for this function:
 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
protected
Reimplemented in ilFSStorageCourse, ilFSStorageCourse, ilFSStorageGroup, ilFSStorageExercise, ilFSStorageSession, ilFSStorageEvent, ilFSStorageFile, ilFSStorageFile, ilFSStorageMail, ilVerificationStorageFile, ilFSStorageBlog, ilFSStorageBooking, ilFSStoragePoll, ilFSStoragePortfolio, ilFSStorageUserFolder, and ilRestFileStorage.
| 
 | abstractprotected | 
Get path prefix.
Prefix that will be prepended to the path No trailing slash. E.g ilFiles for files
protected
Reimplemented in ilFSStorageCourse, ilFSStorageCourse, ilFSStorageGroup, ilFSStorageExercise, ilFSStorageSession, ilFSStorageEvent, ilFSStorageFile, ilFSStorageFile, ilFSStorageMail, ilVerificationStorageFile, ilFSStorageBlog, ilFSStorageBooking, ilFSStoragePoll, ilFSStoragePortfolio, ilFSStorageUserFolder, and ilRestFileStorage.
Referenced by init().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::getShortPath | ( | ) | 
Definition at line 142 of file class.ilFileSystemStorage.php.
References $short_path.
| ilFileSystemStorage::getStorageType | ( | ) | 
Definition at line 296 of file class.ilFileSystemStorage.php.
References $storage_type.
Referenced by ilFSStorageMail\getRelativePathExMailDirectory().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Read path info.
private
Reimplemented in ilRestFileStorage, and ilFSStorageExercise.
Definition at line 157 of file class.ilFileSystemStorage.php.
References $container_id, $path, ilUpdateUtils\getDataDir(), getPathPostfix(), getPathPrefix(), ilUpdateUtils\getWebspaceDir(), and ilUpdateUtils\removeTrailingPathSeparators().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Read path info.
private
Reimplemented in ilRestFileStorage, and ilFSStorageExercise.
Definition at line 160 of file class.ilFileSystemStorage.php.
References $container_id, _createPathFromId(), ilUtil\getDataDir(), getPathPostfix(), getPathPrefix(), ilUtil\getWebspaceDir(), and ilUtil\removeTrailingPathSeparators().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::rename | ( | $from, | |
| $to | |||
| ) | 
Definition at line 147 of file class.ilFileSystemStorage.php.
Referenced by ilFSStorageExercise\deliverFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilFileSystemStorage::writeToFile | ( | $a_data, | |
| $a_absolute_path | |||
| ) | 
Write data to file.
public
Definition at line 196 of file class.ilFileSystemStorage.php.
Referenced by ilFSStorageGroup\addMemberExportFile(), ilFSStorageCourse\addMemberExportFile(), ilRestFileStorage\createFile(), ilRestFileStorage\storeFileForRest(), and ilFSStorageCourse\writeArchiveFile().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 43 of file class.ilFileSystemStorage.php.
Referenced by getContainerId(), and init().
| 
 | protected | 
Definition at line 47 of file class.ilFileSystemStorage.php.
Referenced by _createPathFromId(), ilRestFileStorage\createFile(), getAbsolutePath(), ilFSStorageExercise\getFeedbackPath(), getPath(), ilFSStorageMail\getRelativePathExMailDirectory(), init(), and ilRestFileStorage\storeFileForRest().
| 
 | private | 
Definition at line 45 of file class.ilFileSystemStorage.php.
| 
 | private | 
Definition at line 39 of file class.ilFileSystemStorage.php.
Referenced by getShortPath().
| 
 | private | 
Definition at line 44 of file class.ilFileSystemStorage.php.
Referenced by getStorageType().
| const ilFileSystemStorage::FACTOR = 100 | 
Definition at line 39 of file class.ilFileSystemStorage.php.
| const ilFileSystemStorage::MAX_EXPONENT = 3 | 
Definition at line 40 of file class.ilFileSystemStorage.php.
| const ilFileSystemStorage::STORAGE_DATA = 2 | 
Definition at line 37 of file class.ilFileSystemStorage.php.
Referenced by ilRestFileStorage\__construct(), ilFSStorageGroup\__construct(), ilFSStorageEvent\__construct(), ilFSStorageSession\__construct(), and ilFSStorageCourse\__construct().
| const ilFileSystemStorage::STORAGE_WEB = 1 | 
Definition at line 36 of file class.ilFileSystemStorage.php.