2 require_once(
"Modules/IndividualAssessment/interfaces/FileStorage/interface.IndividualAssessmentFileStorage.php");
3 include_once(
'Services/FileSystem/classes/class.ilFileSystemStorage.php');
14 return new self(self::STORAGE_WEB,
true, $a_container_id);
46 return (count(
$files) == 0) ? true :
false;
56 $this->user_id = $user_id;
79 $path = parent::getAbsolutePath();
82 $path .=
"/user_" . $this->user_id;
101 while ($file = readdir($fh)) {
102 if ($file !=
"." && $file !=
".." && !is_dir($this->
getAbsolutePath() .
"/" . $file)) {
122 $clean_name = preg_replace(
"/[^a-zA-Z0-9\_\.\-]/",
"", $file[
"name"]);
123 $new_file =
$path .
"/" . $clean_name;
125 ilUtil::moveUploadedFile(
static makeDirParents($a_dir)
Create a new directory and all parent directories.
setUserId($user_id)
Set the user id for an extra folder of each participant in the IA.
deleteFileByName($file_name)
Delete a file by name.
isEmpty()
Is the webdir folder for this IA empty.
getAbsolutePath()
Get the absolute path for files.
getPathPostfix()
part of the folder structure in ILIAS webdir.
deleteCurrentFile()
Delete the existing file.
getPathPrefix()
part of the folder structure in ILIAS webdir.
create()
creates the folder structure
Handles the fileupload and folder creation for files uploaded in grading form.
static getInstance($a_container_id=0)
getFilePath()
Get the path of file.
uploadFile($file)
Upload the file.
deleteFile($a_abs_name)
Delete file.