ILIAS
eassessment Revision 61809
|
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 () |
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. |
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. |
Private Member Functions | |
init () | |
Read path info. |
Private Attributes | |
$container_id | |
$storage_type | |
$path_conversion = false | |
$path |
Definition at line 33 of file class.ilFileSystemStorageMailMigration.php.
ilFileSystemStorageMailMigration::__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 57 of file class.ilFileSystemStorageMailMigration.php.
References init().
|
static |
Copy directory and all contents.
public
string | absolute source path |
string | absolute target path |
Definition at line 285 of file class.ilFileSystemStorageMailMigration.php.
|
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 81 of file class.ilFileSystemStorageMailMigration.php.
References $path.
Referenced by init().
ilFileSystemStorageMailMigration::appendToPath | ( | $a_appendix | ) |
Definition at line 290 of file class.ilFileSystemStorageMailMigration.php.
Referenced by ilFSStorageMailMailMigration\__construct().
ilFileSystemStorageMailMigration::copyFile | ( | $a_from, | |
$a_to | |||
) |
Copy files.
public
string | absolute source |
string | absolute target |
Definition at line 266 of file class.ilFileSystemStorageMailMigration.php.
ilFileSystemStorageMailMigration::create | ( | ) |
Create directory.
public
Definition at line 133 of file class.ilFileSystemStorageMailMigration.php.
References ilUpdateUtilsMailMigration\makeDirParents().
ilFileSystemStorageMailMigration::delete | ( | ) |
Delete complete directory.
public
Definition at line 252 of file class.ilFileSystemStorageMailMigration.php.
References ilUpdateUtilsMailMigration\delDir(), and getAbsolutePath().
ilFileSystemStorageMailMigration::deleteDirectory | ( | $a_abs_name | ) |
Delete directory.
public
string | absolute name |
Definition at line 234 of file class.ilFileSystemStorageMailMigration.php.
References ilUpdateUtilsMailMigration\delDir().
ilFileSystemStorageMailMigration::deleteFile | ( | $a_abs_name | ) |
Delete file.
public
string | absolute name |
Definition at line 217 of file class.ilFileSystemStorageMailMigration.php.
ilFileSystemStorageMailMigration::getAbsolutePath | ( | ) |
Get absolute path of storage directory.
public
Definition at line 149 of file class.ilFileSystemStorageMailMigration.php.
References $path.
Referenced by delete(), and ilFSStorageMailMailMigration\getRelativePathExMailDirectory().
ilFileSystemStorageMailMigration::getContainerId | ( | ) |
Definition at line 67 of file class.ilFileSystemStorageMailMigration.php.
References $container_id.
|
abstractprotected |
Get directory name.
E.g for files => file Only relative path, no trailing slash '_<obj_id>' will be appended automatically
protected
Reimplemented in ilFSStorageMailMailMigration.
Referenced by init().
|
abstractprotected |
Get path prefix.
Prefix that will be prepended to the path No trailing slash. E.g ilFiles for files
protected
Reimplemented in ilFSStorageMailMailMigration.
Referenced by init().
ilFileSystemStorageMailMigration::getStorageType | ( | ) |
Definition at line 295 of file class.ilFileSystemStorageMailMigration.php.
References $storage_type.
Referenced by ilFSStorageMailMailMigration\getRelativePathExMailDirectory().
|
private |
Read path info.
private
Definition at line 159 of file class.ilFileSystemStorageMailMigration.php.
References $container_id, _createPathFromId(), ilUpdateUtilsMailMigration\getDataDir(), getPathPostfix(), getPathPrefix(), ilUpdateUtilsMailMigration\getWebspaceDir(), and ilUpdateUtilsMailMigration\removeTrailingPathSeparators().
Referenced by __construct().
ilFileSystemStorageMailMigration::writeToFile | ( | $a_data, | |
$a_absolute_path | |||
) |
Write data to file.
public
Definition at line 195 of file class.ilFileSystemStorageMailMigration.php.
|
private |
Definition at line 42 of file class.ilFileSystemStorageMailMigration.php.
Referenced by getContainerId(), and init().
|
private |
Definition at line 46 of file class.ilFileSystemStorageMailMigration.php.
Referenced by _createPathFromId(), getAbsolutePath(), and ilFSStorageMailMailMigration\getRelativePathExMailDirectory().
|
private |
Definition at line 44 of file class.ilFileSystemStorageMailMigration.php.
|
private |
Definition at line 43 of file class.ilFileSystemStorageMailMigration.php.
Referenced by getStorageType().
const ilFileSystemStorageMailMigration::FACTOR = 100 |
Definition at line 38 of file class.ilFileSystemStorageMailMigration.php.
const ilFileSystemStorageMailMigration::MAX_EXPONENT = 3 |
Definition at line 39 of file class.ilFileSystemStorageMailMigration.php.
const ilFileSystemStorageMailMigration::STORAGE_DATA = 2 |
Definition at line 36 of file class.ilFileSystemStorageMailMigration.php.
const ilFileSystemStorageMailMigration::STORAGE_WEB = 1 |
Definition at line 35 of file class.ilFileSystemStorageMailMigration.php.