|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Inheritance diagram for ilIndividualAssessmentFileStorage:
Collaboration diagram for ilIndividualAssessmentFileStorage: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... | |
Public Member Functions inherited from ilFileSystemAbstractionStorage | |
| __construct (int $a_storage_type, bool $a_path_conversion, int $a_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 () | |
Public Member Functions inherited from IndividualAssessmentFileStorage | |
| deleteAllFilesBut (string $file) | |
Static Public Member Functions | |
| static | getInstance (int $container_id=0) |
Static Public Member Functions inherited from ilFileSystemAbstractionStorage | |
| 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" |
Data Fields inherited from ilFileSystemAbstractionStorage | |
| 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... | |
Protected Member Functions inherited from ilFileSystemAbstractionStorage | |
| 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 |
Protected Attributes inherited from ilFileSystemAbstractionStorage | |
| string | $path = null |
| ILIAS Filesystem 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilIndividualAssessmentFileStorage::deleteAllFilesBut | ( | ?string | $filename | ) |
Delete the existing file.
Definition at line 131 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemAbstractionStorage\deleteFile(), getAbsolutePath(), and readDir().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:
|
static |
Definition at line 33 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemAbstractionStorage\$container_id.
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
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.