3declare(strict_types=1);
77 $path = parent::getAbsolutePath();
99 while ($file = readdir($fh)) {
100 if ($file !=
"." && $file !=
".." && !is_dir($this->
getAbsolutePath() .
"/" . $file)) {
117 $new_file =
$path .
"/" . $clean_name;
134 foreach ($files as $file) {
deleteFile(string $a_abs_name)
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
static getValidFilename(string $a_filename)
static moveUploadedFile(string $a_file, string $a_name, string $a_target, bool $a_raise_errors=true, string $a_mode="move_uploaded")
move uploaded file
Handles the file upload and folder creation for files uploaded in grading form.
getPathPostfix()
part of the folder structure in ILIAS webdir.
getPathPrefix()
part of the folder structure in ILIAS webdir.
getAbsolutePath()
Get the absolute path for files.
create()
creates the folder structure
uploadFile(UploadResult $file)
Upload the file.
setUserId(int $user_id)
Set the user id for an extra folder of each participant in the IA.
static getInstance(int $container_id=0)
deleteAllFilesBut(?string $filename)
Delete the existing file.