2require_once(
"Modules/IndividualAssessment/interfaces/FileStorage/interface.IndividualAssessmentFileStorage.php");
3include_once(
'Services/FileSystem/classes/class.ilFileSystemStorage.php');
34 return 'ilIndividualAssessment';
46 return (count(
$files) == 0) ? true :
false;
56 $this->user_id = $user_id;
79 $path = parent::getAbsolutePath();
82 $path .=
"/user_" . $this->user_id;
122 $clean_name = preg_replace(
"/[^a-zA-Z0-9\_\.\-]/",
"",
$file[
"name"]);
123 $new_file =
$path .
"/" . $clean_name;
125 ilUtil::moveUploadedFile(
An exception for terminatinating execution or to throw for unit testing.
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.
setUserId($user_id)
Set the user id for an extra folder of each participant in the IA.
getFilePath()
Get the path of file.
create()
creates the folder structure
deleteCurrentFile()
Delete the existing file.
uploadFile($file)
Upload the file.
static makeDirParents($a_dir)
Create a new directory and all parent directories.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file