ILIAS
Release_4_2_x_branch Revision 61807
|
Static Public Member Functions | |
static | _getUploadDirectory () |
Get the directory with uploaded files. | |
static | _getUploadFiles () |
Get a list of readable files in the upload directory. | |
static | _checkUploadFile ($a_file) |
Check if a file exists in the upload directory and is readable. | |
static | _copyUploadFile ($a_file, $a_target, $a_raise_errors=true) |
copy an uploaded file to the target directory (including virus check) |
Definition at line 34 of file class.ilUploadFiles.php.
|
static |
Check if a file exists in the upload directory and is readable.
string | file name |
Definition at line 107 of file class.ilUploadFiles.php.
References $files, and _getUploadFiles().
Referenced by ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilFileSystemGUI\uploadFile(), and ilObjSAHSLearningModuleGUI\uploadObject().
|
static |
copy an uploaded file to the target directory (including virus check)
string | file name |
string | target path and name |
Definition at line 122 of file class.ilUploadFiles.php.
References $file, $lng, _getUploadDirectory(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\virusHandling().
Referenced by ilObjSCORMLearningModuleGUI\newModuleVersionUpload(), ilFileSystemGUI\uploadFile(), and ilObjSAHSLearningModuleGUI\uploadObject().
|
static |
Get the directory with uploaded files.
The directory is configured as cont_upload_dir in the settings table. The directory must exist and have read permissions. Currently the user must have admin permissions in ILIAS. Later there may be different directories for different users/roles.
Definition at line 47 of file class.ilUploadFiles.php.
Referenced by _copyUploadFile(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilFileSystemGUI\listFiles(), and ilObjSCORMLearningModuleGUI\newModuleVersion().
|
static |
Get a list of readable files in the upload directory.
Definition at line 75 of file class.ilUploadFiles.php.
Referenced by _checkUploadFile(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilFileSystemGUI\listFiles(), and ilObjSCORMLearningModuleGUI\newModuleVersion().