5require_once(
"Modules/IndividualAssessment/interfaces/FileStorage/interface.IndividualAssessmentFileStorage.php");
6include_once(
'Services/FileSystem/classes/class.ilFileSystemStorage.php');
49 return (count($files) == 0) ?
true :
false;
59 $this->user_id = $user_id;
82 $path = parent::getAbsolutePath();
85 $path .=
"/user_" . $this->user_id;
104 while ($file = readdir($fh)) {
105 if ($file !=
"." && $file !=
".." && !is_dir($this->
getAbsolutePath() .
"/" . $file)) {
126 $clean_name = preg_replace(
"/[^a-zA-Z0-9\_\.\-]/",
"",
$result->getName());
127 $new_file =
$path .
"/" . $clean_name;
An exception for terminatinating execution or to throw for unit testing.
return true
Flag indicating whether or not HTTP headers will be sent when outputting captcha image/audio.
deleteFile($a_abs_name)
Delete file.
Handles the fileupload and folder creation for files uploaded in grading form.
deleteFileByName($file_name)
Delete a file by name.
static getInstance($a_container_id=0)
getPathPostfix()
part of the folder structure in ILIAS webdir.
isEmpty()
Is the webdir folder for this IA empty.
getPathPrefix()
part of the folder structure in ILIAS webdir.
getAbsolutePath()
Get the absolute path for files.
getFileName()
Get the name of the file.
setUserId($user_id)
Set the user id for an extra folder of each participant in the IA.
getFilePath()
Get the path of the file.
uploadFile(UploadResult $result)
Upload the file.
create()
creates the folder structure
deleteCurrentFile()
Delete the existing file.
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
static makeDirParents($a_dir)
Create a new directory and all parent directories.