ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Handles the fileupload and folder creation for files uploaded in grading form. More...
Public Member Functions | |
isEmpty () | |
Is the webdir folder for this IA empty. More... | |
setUserId ($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 $result) | |
Upload the file. More... | |
deleteCurrentFile () | |
Delete the existing file. More... | |
getFilePath () | |
Get the path of the file. More... | |
getFileName () | |
Get the name of the file. More... | |
deleteFileByName ($file_name) | |
Delete a file by name. More... | |
![]() | |
__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 | getInstance ($a_container_id=0) |
![]() | |
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... | |
Protected Member Functions | |
getPathPostfix () | |
part of the folder structure in ILIAS webdir. More... | |
getPathPrefix () | |
part of the folder structure in ILIAS webdir. More... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
const | STORAGE_WEB = 1 |
const | STORAGE_DATA = 2 |
const | STORAGE_SECURED = 3 |
const | FACTOR = 100 |
const | MAX_EXPONENT = 3 |
const | SECURED_DIRECTORY = "sec" |
![]() | |
$path | |
Handles the fileupload and folder creation for files uploaded in grading form.
Definition at line 13 of file class.ilIndividualAssessmentFileStorage.php.
ilIndividualAssessmentFileStorage::create | ( | ) |
creates the folder structure
Implements IndividualAssessmentFileStorage.
Definition at line 67 of file class.ilIndividualAssessmentFileStorage.php.
References getAbsolutePath(), and ilUtil\makeDirParents().
Referenced by readDir().
ilIndividualAssessmentFileStorage::deleteCurrentFile | ( | ) |
Delete the existing file.
Implements IndividualAssessmentFileStorage.
Definition at line 141 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemStorage\deleteFile(), and getFilePath().
ilIndividualAssessmentFileStorage::deleteFileByName | ( | $file_name | ) |
Delete a file by name.
string | $file_name |
Definition at line 172 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemStorage\deleteFile(), and getAbsolutePath().
ilIndividualAssessmentFileStorage::getAbsolutePath | ( | ) |
Get the absolute path for files.
Definition at line 80 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemStorage\$path.
Referenced by create(), deleteFileByName(), getFilePath(), readDir(), and uploadFile().
ilIndividualAssessmentFileStorage::getFileName | ( | ) |
Get the name of the file.
Implements IndividualAssessmentFileStorage.
Definition at line 161 of file class.ilIndividualAssessmentFileStorage.php.
References readDir().
Referenced by getFilePath().
ilIndividualAssessmentFileStorage::getFilePath | ( | ) |
Get the path of the file.
Implements IndividualAssessmentFileStorage.
Definition at line 151 of file class.ilIndividualAssessmentFileStorage.php.
References getAbsolutePath(), and getFileName().
Referenced by deleteCurrentFile().
|
static |
Definition at line 15 of file class.ilIndividualAssessmentFileStorage.php.
Referenced by ilObjIndividualAssessment\getFileStorage().
|
protected |
part of the folder structure in ILIAS webdir.
Definition at line 25 of file class.ilIndividualAssessmentFileStorage.php.
|
protected |
part of the folder structure in ILIAS webdir.
Definition at line 35 of file class.ilIndividualAssessmentFileStorage.php.
ilIndividualAssessmentFileStorage::isEmpty | ( | ) |
Is the webdir folder for this IA empty.
Implements IndividualAssessmentFileStorage.
Definition at line 45 of file class.ilIndividualAssessmentFileStorage.php.
References readDir().
ilIndividualAssessmentFileStorage::readDir | ( | ) |
Read the dir.
Definition at line 96 of file class.ilIndividualAssessmentFileStorage.php.
References create(), and getAbsolutePath().
Referenced by getFileName(), and isEmpty().
ilIndividualAssessmentFileStorage::setUserId | ( | $user_id | ) |
Set the user id for an extra folder of each participant in the IA.
int | $user_id |
Implements IndividualAssessmentFileStorage.
Definition at line 57 of file class.ilIndividualAssessmentFileStorage.php.
ilIndividualAssessmentFileStorage::uploadFile | ( | UploadResult | $result | ) |
Upload the file.
UploadResult | $result |
ilException |
Implements IndividualAssessmentFileStorage.
Definition at line 122 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemStorage\$path, getAbsolutePath(), ILIAS\FileUpload\DTO\UploadResult\getName(), ILIAS\FileUpload\DTO\UploadResult\getPath(), and ilUtil\moveUploadedFile().