|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for ilFileSystemStorage:
Collaboration diagram for ilFileSystemStorage: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... | |
| __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) | |
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... | |
| 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... | |
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... | |
| getPathPrefix () | |
| Get path prefix. More... | |
| getPathPostfix () | |
| Get directory name. More... | |
Protected Attributes | |
| $path | |
Private Member Functions | |
| init () | |
| Read path info. More... | |
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.
@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 59 of file class.ilFileSystemStorage.php.
References init().
Here is the call graph for this function:| ilFileSystemStorage::__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 50 of file class.ilFileSystemStorage.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 277 of file class.ilFileSystemStorage.php.
References ilUtil\rCopy().
Referenced by ilFSStorageCourse\_clone(), and ilObjPortfolioBase\cloneBasics().
Here is the call 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.
@access public
| int | container id |
| string | name |
Definition at line 83 of file class.ilFileSystemStorage.php.
Referenced by ilExport\_getExportDirectory(), and init().
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.
@access public
| int | container id |
| string | name |
Definition at line 69 of file class.ilFileSystemStorage.php.
| ilFileSystemStorage::appendToPath | ( | $a_appendix | ) |
Definition at line 282 of file class.ilFileSystemStorage.php.
Referenced by ilFSStorageMail\__construct().
Here is the caller graph for this function:| ilFileSystemStorage::copyFile | ( | $a_from, | |
| $a_to | |||
| ) |
Copy files.
@access public
| string | absolute source |
| string | absolute target |
Definition at line 262 of file class.ilFileSystemStorage.php.
| ilFileSystemStorage::create | ( | ) |
Create directory.
@access public
Reimplemented in ilFSStorageExercise, ilFSWebStorageExercise, ilIndividualAssessmentFileStorage, ilTestProcessLockFileStorage, and ilAssQuestionProcessLockFileStorage.
Definition at line 132 of file class.ilFileSystemStorage.php.
References ilUtil\makeDirParents().
Referenced by ilRestFileStorage\init().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemStorage::create | ( | ) |
Create directory.
@access public
Reimplemented in ilFSStorageExercise, ilFSWebStorageExercise, ilIndividualAssessmentFileStorage, ilTestProcessLockFileStorage, and ilAssQuestionProcessLockFileStorage.
Definition at line 118 of file class.ilFileSystemStorage.php.
References ilUpdateUtils\makeDirParents(), and ilUpdateUtils\removeTrailingPathSeparators().
Here is the call graph for this function:| ilFileSystemStorage::delete | ( | ) |
Delete complete directory.
@access public
Definition at line 248 of file class.ilFileSystemStorage.php.
References ilUtil\delDir(), and getAbsolutePath().
Here is the call graph for this function:| ilFileSystemStorage::deleteDirectory | ( | $a_abs_name | ) |
Delete directory.
@access public
| string | absolute name |
Definition at line 231 of file class.ilFileSystemStorage.php.
References ilUtil\delDir().
Referenced by ilFSStorageCourse\deleteArchive().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemStorage::deleteFile | ( | $a_abs_name | ) |
Delete file.
@access public
| string | absolute name |
Definition at line 215 of file class.ilFileSystemStorage.php.
Referenced by ilFSStorageCourse\deleteArchive(), ilIndividualAssessmentFileStorage\deleteCurrentFile(), ilIndividualAssessmentFileStorage\deleteFileByName(), ilFSStorageCourse\deleteMemberExportFile(), and ilFSStorageGroup\deleteMemberExportFile().
Here is the caller graph for this function:| ilFileSystemStorage::getAbsolutePath | ( | ) |
Get absolute path of storage directory.
@access public
Reimplemented in ilIndividualAssessmentFileStorage.
Definition at line 147 of file class.ilFileSystemStorage.php.
References $path.
Referenced by ilFSStorageSession\createDirectory(), ilFSStorageEvent\createDirectory(), delete(), ilFSStorageCourse\getArchiveDirectory(), ilFSStorageExercise\getAssignmentFilePath(), ilFSWebStorageExercise\getAssignmentFilePath(), ilFSStorageCourse\getInfoDirectory(), ilFSStorageCourse\getMemberExportDirectory(), ilFSStorageGroup\getMemberExportDirectory(), and ilFSStorageMail\getRelativePathExMailDirectory().
Here is the caller graph for this function:| ilFileSystemStorage::getAbsolutePath | ( | ) |
Get absolute path of storage directory.
@access public
Reimplemented in ilIndividualAssessmentFileStorage.
Definition at line 133 of file class.ilFileSystemStorage.php.
References $path.
| ilFileSystemStorage::getContainerId | ( | ) |
Definition at line 69 of file class.ilFileSystemStorage.php.
References $container_id.
Referenced by ilFSStorageCourse\getMemberExportFiles(), and ilFSStorageGroup\getMemberExportFiles().
Here is the caller graph for this function:| ilFileSystemStorage::getPath | ( | ) |
Get path.
Reimplemented in ilAssQuestionProcessLockFileStorage.
Definition at line 295 of file class.ilFileSystemStorage.php.
References $path.
Referenced by ilTestProcessLockFileStorage\create(), ilRestFileStorage\createFile(), ilRestFileStorage\deleteDeprecated(), ilRestFileStorage\getFile(), ilRestFileStorage\getStoredFilePath(), and ilRestFileStorage\storeFileForRest().
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
@abstract @access protected
Reimplemented in ilFSStorageBlog, ilFSStorageBooking, ilFSStorageCourse, ilFSStorageExercise, ilFSWebStorageExercise, ilFSStorageFile, ilFSStorageGroup, ilIndividualAssessmentFileStorage, ilFSStoragePoll, ilFSStoragePortfolio, ilFSStorageSession, ilTestProcessLockFileStorage, ilAssQuestionProcessLockFileStorage, ilFSStorageBadge, ilFSStorageBadgeImageTemplate, ilFSStorageMail, ilFSStorageCourse, ilFSStorageEvent, ilFSStorageFile, ilFSStoragePreview, ilFSStorageUserFolder, ilVerificationStorageFile, and ilRestFileStorage.
Referenced by init().
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
@abstract @access protected
Reimplemented in ilFSStorageBlog, ilFSStorageBooking, ilFSStorageCourse, ilFSStorageExercise, ilFSWebStorageExercise, ilFSStorageFile, ilFSStorageGroup, ilIndividualAssessmentFileStorage, ilFSStoragePoll, ilFSStoragePortfolio, ilFSStorageSession, ilTestProcessLockFileStorage, ilAssQuestionProcessLockFileStorage, ilFSStorageBadge, ilFSStorageBadgeImageTemplate, ilFSStorageMail, ilFSStorageCourse, ilFSStorageEvent, ilFSStorageFile, ilFSStoragePreview, ilFSStorageUserFolder, ilVerificationStorageFile, and ilRestFileStorage.
|
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 ilFSStorageBlog, ilFSStorageBooking, ilFSStorageCourse, ilFSStorageExercise, ilFSWebStorageExercise, ilFSStorageFile, ilFSStorageGroup, ilIndividualAssessmentFileStorage, ilFSStoragePoll, ilFSStoragePortfolio, ilFSStorageSession, ilTestProcessLockFileStorage, ilAssQuestionProcessLockFileStorage, ilFSStorageBadge, ilFSStorageBadgeImageTemplate, ilFSStorageMail, ilFSStorageCourse, ilFSStorageEvent, ilFSStorageFile, ilFSStoragePreview, ilFSStorageUserFolder, ilVerificationStorageFile, and ilRestFileStorage.
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 ilFSStorageBlog, ilFSStorageBooking, ilFSStorageCourse, ilFSStorageExercise, ilFSWebStorageExercise, ilFSStorageFile, ilFSStorageGroup, ilIndividualAssessmentFileStorage, ilFSStoragePoll, ilFSStoragePortfolio, ilFSStorageSession, ilTestProcessLockFileStorage, ilAssQuestionProcessLockFileStorage, ilFSStorageBadge, ilFSStorageBadgeImageTemplate, ilFSStorageMail, ilFSStorageCourse, ilFSStorageEvent, ilFSStorageFile, ilFSStoragePreview, ilFSStorageUserFolder, ilVerificationStorageFile, and ilRestFileStorage.
| ilFileSystemStorage::getShortPath | ( | ) |
| ilFileSystemStorage::getStorageType | ( | ) |
Definition at line 287 of file class.ilFileSystemStorage.php.
References $storage_type.
Referenced by ilFSStorageMail\getRelativePathExMailDirectory().
Here is the caller graph for this function:
|
protected |
Read path info.
@access private
Reimplemented in ilFSStorageExercise, ilFSWebStorageExercise, and ilRestFileStorage.
Definition at line 157 of file class.ilFileSystemStorage.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:
|
private |
Read path info.
@access private
Reimplemented in ilFSStorageExercise, ilFSWebStorageExercise, and ilRestFileStorage.
Definition at line 153 of file class.ilFileSystemStorage.php.
References $container_id, $path, ilUpdateUtils\getDataDir(), getPathPostfix(), getPathPrefix(), ilUpdateUtils\getWebspaceDir(), ilUpdateUtils\removeTrailingPathSeparators(), STORAGE_DATA, and STORAGE_WEB.
Here is the call graph for this function:| ilFileSystemStorage::rename | ( | $from, | |
| $to | |||
| ) |
Definition at line 143 of file class.ilFileSystemStorage.php.
References $from, and rename().
Referenced by rename(), and ilFSStorageExercise\uploadFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemStorage::writeToFile | ( | $a_data, | |
| $a_absolute_path | |||
| ) |
Write data to file.
@access public
Definition at line 195 of file class.ilFileSystemStorage.php.
Referenced by ilFSStorageCourse\addMemberExportFile(), ilFSStorageGroup\addMemberExportFile(), ilRestFileStorage\createFile(), ilRestFileStorage\storeFileForRest(), and ilFSStorageCourse\writeArchiveFile().
Here is the caller graph for this function:
|
private |
Definition at line 44 of file class.ilFileSystemStorage.php.
Referenced by getContainerId(), and init().
|
protected |
Definition at line 48 of file class.ilFileSystemStorage.php.
Referenced by _createPathFromId(), ilRestFileStorage\createFile(), ilIndividualAssessmentFileStorage\getAbsolutePath(), getAbsolutePath(), ilFSStorageExercise\getFeedbackPath(), ilFSStorageExercise\getGlobalFeedbackPath(), ilFSStorageExercise\getMultiFeedbackUploadPath(), getPath(), ilFSStorageExercise\getPeerReviewUploadPath(), ilFSStorageMail\getRelativePathExMailDirectory(), init(), ilAssQuestionProcessLockFileStorage\initSubPath(), ilRestFileStorage\storeFileForRest(), and ilIndividualAssessmentFileStorage\uploadFile().
|
private |
Definition at line 46 of file class.ilFileSystemStorage.php.
|
private |
Definition at line 39 of file class.ilFileSystemStorage.php.
Referenced by getShortPath().
|
private |
Definition at line 45 of file class.ilFileSystemStorage.php.
Referenced by getStorageType().
| const ilFileSystemStorage::FACTOR = 100 |
Definition at line 40 of file class.ilFileSystemStorage.php.
| const ilFileSystemStorage::MAX_EXPONENT = 3 |
Definition at line 41 of file class.ilFileSystemStorage.php.
| const ilFileSystemStorage::SECURED_DIRECTORY = "sec" |
Definition at line 42 of file class.ilFileSystemStorage.php.
Referenced by init().
| const ilFileSystemStorage::STORAGE_DATA = 2 |
Definition at line 37 of file class.ilFileSystemStorage.php.
Referenced by ilFSStorageCourse\__construct(), ilFSStorageGroup\__construct(), ilFSStorageSession\__construct(), ilFSStorageEvent\__construct(), ilTestProcessLockFileStorage\__construct(), ilAssQuestionProcessLockFileStorage\__construct(), ilRestFileStorage\__construct(), ilFSStorageMail\getRelativePathExMailDirectory(), and init().
| const ilFileSystemStorage::STORAGE_SECURED = 3 |
Definition at line 38 of file class.ilFileSystemStorage.php.
Referenced by ilIndividualAssessmentFileStorage\getInstance(), and init().
| const ilFileSystemStorage::STORAGE_WEB = 1 |
Definition at line 36 of file class.ilFileSystemStorage.php.
Referenced by ilFSStorageMail\getRelativePathExMailDirectory(), and init().