ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 ($file) | |
Upload the file. More... | |
deleteCurrentFile () | |
Delete the existing file. More... | |
getFilePath () | |
Get the path of file. More... | |
deleteFileByName ($file_name) | |
Delete a file by name. More... | |
Public Member Functions inherited from ilFileSystemStorage | |
__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 Public Member Functions inherited from ilFileSystemStorage | |
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... | |
Protected Member Functions inherited from ilFileSystemStorage | |
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 | |
Data Fields inherited from ilFileSystemStorage | |
const | STORAGE_WEB = 1 |
const | STORAGE_DATA = 2 |
const | STORAGE_SECURED = 3 |
const | FACTOR = 100 |
const | MAX_EXPONENT = 3 |
const | SECURED_DIRECTORY = "sec" |
Protected Attributes inherited from ilFileSystemStorage | |
$path | |
Handles the fileupload and folder creation for files uploaded in grading form.
Definition at line 10 of file class.ilIndividualAssessmentFileStorage.php.
ilIndividualAssessmentFileStorage::create | ( | ) |
creates the folder structure
Implements IndividualAssessmentFileStorage.
Definition at line 64 of file class.ilIndividualAssessmentFileStorage.php.
References getAbsolutePath(), and ilUtil\makeDirParents().
Referenced by readDir().
ilIndividualAssessmentFileStorage::deleteCurrentFile | ( | ) |
Delete the existing file.
Implements IndividualAssessmentFileStorage.
Definition at line 137 of file class.ilIndividualAssessmentFileStorage.php.
References $files, ilFileSystemStorage\deleteFile(), getAbsolutePath(), and readDir().
ilIndividualAssessmentFileStorage::deleteFileByName | ( | $file_name | ) |
Delete a file by name.
string | $file_name |
Definition at line 159 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemStorage\deleteFile(), and getAbsolutePath().
ilIndividualAssessmentFileStorage::getAbsolutePath | ( | ) |
Get the absolute path for files.
Definition at line 77 of file class.ilIndividualAssessmentFileStorage.php.
References ilFileSystemStorage\$path.
Referenced by create(), deleteCurrentFile(), deleteFileByName(), getFilePath(), readDir(), and uploadFile().
ilIndividualAssessmentFileStorage::getFilePath | ( | ) |
Get the path of file.
Implements IndividualAssessmentFileStorage.
Definition at line 148 of file class.ilIndividualAssessmentFileStorage.php.
References $files, getAbsolutePath(), and readDir().
|
static |
Definition at line 12 of file class.ilIndividualAssessmentFileStorage.php.
Referenced by ilObjIndividualAssessment\getFileStorage().
|
protected |
part of the folder structure in ILIAS webdir.
Definition at line 22 of file class.ilIndividualAssessmentFileStorage.php.
|
protected |
part of the folder structure in ILIAS webdir.
Definition at line 32 of file class.ilIndividualAssessmentFileStorage.php.
ilIndividualAssessmentFileStorage::isEmpty | ( | ) |
Is the webdir folder for this IA empty.
Implements IndividualAssessmentFileStorage.
Definition at line 42 of file class.ilIndividualAssessmentFileStorage.php.
References $files, and readDir().
ilIndividualAssessmentFileStorage::readDir | ( | ) |
Read the dir.
Definition at line 93 of file class.ilIndividualAssessmentFileStorage.php.
References $fh, $file, $files, array, create(), and getAbsolutePath().
Referenced by deleteCurrentFile(), getFilePath(), 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 54 of file class.ilIndividualAssessmentFileStorage.php.
ilIndividualAssessmentFileStorage::uploadFile | ( | $file | ) |
Upload the file.
string[] |
Implements IndividualAssessmentFileStorage.
Definition at line 118 of file class.ilIndividualAssessmentFileStorage.php.
References $file, ilFileSystemStorage\$path, and getAbsolutePath().