ILIAS
Release_5_0_x_branch Revision 61816
|
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 33 of file class.ilUploadFiles.php.
|
static |
Check if a file exists in the upload directory and is readable.
string | file name |
Definition at line 106 of file class.ilUploadFiles.php.
References _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 121 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 46 of file class.ilUploadFiles.php.
References $lm_set.
Referenced by _copyUploadFile(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilFileSystemGUI\listFiles(), and ilObjSCORMLearningModuleGUI\newModuleVersion().
|
static |
Get a list of readable files in the upload directory.
Definition at line 74 of file class.ilUploadFiles.php.
References $file.
Referenced by _checkUploadFile(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilFileSystemGUI\listFiles(), and ilObjSCORMLearningModuleGUI\newModuleVersion().