|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for ilFileSystemAbstractionStorage:
Collaboration diagram for ilFileSystemAbstractionStorage:Public Member Functions | |
| __construct ($a_storage_type, $a_path_conversion, $a_container_id) | |
| Constructor. More... | |
| fileExists ($a_absolute_path) | |
| getContainerId () | |
| create () | |
| Create directory. More... | |
| getAbsolutePath () | |
| Calculates the full path on the filesystem. More... | |
| writeToFile ($a_data, $a_absolute_path) | |
| deleteFile ($a_absolute_path) | |
| deleteDirectory ($a_absolute_path) | |
| delete () | |
| copyFile ($a_from, $a_to) | |
| appendToPath ($a_appendix) | |
| getStorageType () | |
| getPath () | |
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_sdir, $a_tdir) |
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 | |
| getLegacyFullAbsolutePath ($relative_path) | |
| getFileSystemService () | |
| getPathPrefix () | |
| Get path prefix. More... | |
| getPathPostfix () | |
| Get directory name. More... | |
| getLegacyAbsolutePath () | |
| Calculates the absolute filesystem storage location. More... | |
| init () | |
| Read path info. More... | |
Protected Attributes | |
| $path | |
Private Member Functions | |
| createRelativePathForFileSystem ($a_absolute_path) | |
Private Attributes | |
| $container_id | |
| $storage_type | |
| $path_conversion = false | |
Definition at line 35 of file class.ilFileSystemAbstractionStorage.php.
| ilFileSystemAbstractionStorage::__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 65 of file class.ilFileSystemAbstractionStorage.php.
References init().
Here is the call graph for this function:
|
static |
| $a_sdir | |
| $a_tdir |
Definition at line 364 of file class.ilFileSystemAbstractionStorage.php.
References $sourceDir, and GuzzleHttp\Psr7\$stream.
|
static |
Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5.
| $a_container_id | |
| $a_name |
Definition at line 134 of file class.ilFileSystemAbstractionStorage.php.
Referenced by init().
Here is the caller graph for this function:| ilFileSystemAbstractionStorage::appendToPath | ( | $a_appendix | ) |
| string | $a_appendix |
Definition at line 400 of file class.ilFileSystemAbstractionStorage.php.
| ilFileSystemAbstractionStorage::copyFile | ( | $a_from, | |
| $a_to | |||
| ) |
| $a_from | |
| $a_to |
Definition at line 342 of file class.ilFileSystemAbstractionStorage.php.
References createRelativePathForFileSystem(), and getFileSystemService().
Here is the call graph for this function:| ilFileSystemAbstractionStorage::create | ( | ) |
Create directory.
@access public
Definition at line 188 of file class.ilFileSystemAbstractionStorage.php.
References getFileSystemService().
Here is the call graph for this function:
|
private |
| $a_absolute_path |
Definition at line 429 of file class.ilFileSystemAbstractionStorage.php.
References ILIAS\Filesystem\Util\LegacyPathHelper\createRelativePath().
Referenced by copyFile(), deleteDirectory(), deleteFile(), fileExists(), and writeToFile().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemAbstractionStorage::delete | ( | ) |
Definition at line 324 of file class.ilFileSystemAbstractionStorage.php.
References getAbsolutePath(), and getFileSystemService().
Here is the call graph for this function:| ilFileSystemAbstractionStorage::deleteDirectory | ( | $a_absolute_path | ) |
| $a_absolute_path |
Definition at line 306 of file class.ilFileSystemAbstractionStorage.php.
References createRelativePathForFileSystem(), and getFileSystemService().
Here is the call graph for this function:| ilFileSystemAbstractionStorage::deleteFile | ( | $a_absolute_path | ) |
| $a_absolute_path |
Definition at line 286 of file class.ilFileSystemAbstractionStorage.php.
References createRelativePathForFileSystem(), and getFileSystemService().
Here is the call graph for this function:| ilFileSystemAbstractionStorage::fileExists | ( | $a_absolute_path | ) |
| $a_absolute_path |
Definition at line 81 of file class.ilFileSystemAbstractionStorage.php.
References createRelativePathForFileSystem(), and getFileSystemService().
Here is the call graph for this function:| ilFileSystemAbstractionStorage::getAbsolutePath | ( | ) |
Calculates the full path on the filesystem.
This method is filesystem aware and will create the absolute path if it's not already existing.
| IOException | Thrown if the absolute path could not be created. |
Definition at line 207 of file class.ilFileSystemAbstractionStorage.php.
References getLegacyAbsolutePath().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilFileSystemAbstractionStorage::getContainerId | ( | ) |
Definition at line 120 of file class.ilFileSystemAbstractionStorage.php.
References $container_id.
|
protected |
Definition at line 105 of file class.ilFileSystemAbstractionStorage.php.
References $DIC, getStorageType(), SECURED_DIRECTORY, STORAGE_DATA, and STORAGE_WEB.
Referenced by copyFile(), create(), delete(), deleteDirectory(), deleteFile(), fileExists(), getLegacyAbsolutePath(), getLegacyFullAbsolutePath(), and writeToFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Calculates the absolute filesystem storage location.
| IOException | Thrown if the directory could not be created. |
Definition at line 220 of file class.ilFileSystemAbstractionStorage.php.
References $path, getFileSystemService(), and getStorageType().
Referenced by getAbsolutePath().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $relative_path |
Definition at line 94 of file class.ilFileSystemAbstractionStorage.php.
References GuzzleHttp\Psr7\$stream, and getFileSystemService().
Here is the call graph for this function:| ilFileSystemAbstractionStorage::getPath | ( | ) |
Definition at line 418 of file class.ilFileSystemAbstractionStorage.php.
References $path.
|
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 ilFSStorageFile, and ilFSStorageFile.
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 ilFSStorageFile, and ilFSStorageFile.
Referenced by init().
Here is the caller graph for this function:| ilFileSystemAbstractionStorage::getStorageType | ( | ) |
Definition at line 409 of file class.ilFileSystemAbstractionStorage.php.
References $storage_type.
Referenced by getFileSystemService(), and getLegacyAbsolutePath().
Here is the caller graph for this function:
|
protected |
Read path info.
@access private
Definition at line 238 of file class.ilFileSystemAbstractionStorage.php.
References $container_id, _createPathFromId(), getPathPostfix(), getPathPrefix(), 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:| ilFileSystemAbstractionStorage::writeToFile | ( | $a_data, | |
| $a_absolute_path | |||
| ) |
| $a_data | |
| $a_absolute_path |
Definition at line 268 of file class.ilFileSystemAbstractionStorage.php.
References createRelativePathForFileSystem(), and getFileSystemService().
Here is the call graph for this function:
|
private |
Definition at line 43 of file class.ilFileSystemAbstractionStorage.php.
Referenced by getContainerId(), and init().
|
protected |
Definition at line 46 of file class.ilFileSystemAbstractionStorage.php.
Referenced by _createPathFromId(), getLegacyAbsolutePath(), and getPath().
|
private |
Definition at line 45 of file class.ilFileSystemAbstractionStorage.php.
|
private |
Definition at line 44 of file class.ilFileSystemAbstractionStorage.php.
Referenced by getStorageType().
| const ilFileSystemAbstractionStorage::FACTOR = 100 |
Definition at line 40 of file class.ilFileSystemAbstractionStorage.php.
| const ilFileSystemAbstractionStorage::MAX_EXPONENT = 3 |
Definition at line 41 of file class.ilFileSystemAbstractionStorage.php.
| const ilFileSystemAbstractionStorage::SECURED_DIRECTORY = "sec" |
Definition at line 42 of file class.ilFileSystemAbstractionStorage.php.
Referenced by getFileSystemService(), and init().
| const ilFileSystemAbstractionStorage::STORAGE_DATA = 2 |
Definition at line 38 of file class.ilFileSystemAbstractionStorage.php.
Referenced by getFileSystemService(), and init().
| const ilFileSystemAbstractionStorage::STORAGE_SECURED = 3 |
Definition at line 39 of file class.ilFileSystemAbstractionStorage.php.
Referenced by init().
| const ilFileSystemAbstractionStorage::STORAGE_WEB = 1 |
Definition at line 37 of file class.ilFileSystemAbstractionStorage.php.
Referenced by getFileSystemService(), and init().