ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
Public Member Functions | |
setUserId (int $user_id) | |
Set the user id for an extra folder of each participant in the IA. More... | |
create () | |
creates the folder structure More... | |
getAbsolutePath () | |
Get the absolute path for files. More... | |
readDir () | |
Read the dir. More... | |
uploadFile (UploadResult $file) | |
Upload the file. More... | |
deleteAllFilesBut (?string $filename) | |
Delete the existing file. More... | |
![]() | |
__construct (private int $storage_type, private bool $path_conversion, private int $container_id) | |
Constructor. More... | |
fileExists (string $a_absolute_path) | |
getContainerId () | |
writeToFile (string $a_data, $a_absolute_path) | |
copyFile (string $a_from, string $a_to) | |
create () | |
getAbsolutePath () | |
Calculates the full path on the filesystem. More... | |
delete () | |
deleteDirectory (string $a_abs_name) | |
deleteFile (string $a_abs_name) | |
appendToPath (string $a_appendix) | |
getStorageType () | |
getPath () | |
![]() | |
deleteAllFilesBut (string $file) | |
Static Public Member Functions | |
static | getInstance (int $container_id=0) |
![]() | |
static | createPathFromId (int $a_container_id, string $a_name) |
static | _copyDirectory (string $a_sdir, string $a_tdir) |
Data Fields | |
const | PATH_POSTFIX = "iass" |
const | PATH_PREFIX = "IASS" |
![]() | |
const | STORAGE_WEB = 1 |
const | STORAGE_DATA = 2 |
const | STORAGE_SECURED = 3 |
Protected Member Functions | |
getPathPostfix () | |
part of the folder structure in ILIAS webdir. More... | |
getPathPrefix () | |
part of the folder structure in ILIAS webdir. More... | |
![]() | |
getLegacyFullAbsolutePath (string $relative_path) | |
getFileSystemService () | |
getPathPrefix () | |
Get path prefix. More... | |
getPathPostfix () | |
Get directory name. More... | |
getLegacyAbsolutePath () | |
Calculates the absolute filesystem storage location. More... | |
init () | |
Protected Attributes | |
int | $user_id = null |
![]() | |
string | $path = null |
Filesystems | $file_system_service |
This class is only used for migration.
Definition at line 26 of file class.ilIndividualAssessmentFileStorage.php.
ilIndividualAssessmentFileStorage::create | ( | ) |
creates the folder structure
Implements IndividualAssessmentFileStorage.
Definition at line 65 of file class.ilIndividualAssessmentFileStorage.php.
References getAbsolutePath(), and ilFileUtils\makeDirParents().
Referenced by readDir().
ilIndividualAssessmentFileStorage::deleteAllFilesBut | ( | ?string | $filename | ) |
Delete the existing file.
Definition at line 131 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemAbstractionStorage\deleteFile(), getAbsolutePath(), and readDir().
ilIndividualAssessmentFileStorage::getAbsolutePath | ( | ) |
Get the absolute path for files.
Definition at line 75 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemAbstractionStorage\$path, and $user_id.
Referenced by create(), deleteAllFilesBut(), readDir(), and uploadFile().
|
static |
Definition at line 33 of file class.ilIndividualAssessmentFileStorage.php.
Referenced by IndAssStorageMigration\step().
|
protected |
part of the folder structure in ILIAS webdir.
Definition at line 41 of file class.ilIndividualAssessmentFileStorage.php.
|
protected |
part of the folder structure in ILIAS webdir.
Definition at line 49 of file class.ilIndividualAssessmentFileStorage.php.
ilIndividualAssessmentFileStorage::readDir | ( | ) |
Read the dir.
Definition at line 91 of file class.ilIndividualAssessmentFileStorage.php.
References create(), and getAbsolutePath().
Referenced by deleteAllFilesBut().
ilIndividualAssessmentFileStorage::setUserId | ( | int | $user_id | ) |
Set the user id for an extra folder of each participant in the IA.
Implements IndividualAssessmentFileStorage.
Definition at line 57 of file class.ilIndividualAssessmentFileStorage.php.
References $user_id.
ilIndividualAssessmentFileStorage::uploadFile | ( | UploadResult | $file | ) |
Upload the file.
Implements IndividualAssessmentFileStorage.
Definition at line 112 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemAbstractionStorage\$path, getAbsolutePath(), ILIAS\FileUpload\DTO\UploadResult\getName(), ILIAS\FileUpload\DTO\UploadResult\getPath(), ilFileUtils\getValidFilename(), and ilFileUtils\moveUploadedFile().
|
protected |
Definition at line 31 of file class.ilIndividualAssessmentFileStorage.php.
Referenced by getAbsolutePath(), and setUserId().
const ilIndividualAssessmentFileStorage::PATH_POSTFIX = "iass" |
Definition at line 28 of file class.ilIndividualAssessmentFileStorage.php.
const ilIndividualAssessmentFileStorage::PATH_PREFIX = "IASS" |
Definition at line 29 of file class.ilIndividualAssessmentFileStorage.php.