ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
FileUpload.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ILIAS\FileUpload;
4 
8 
21 interface FileUpload
22 {
23 
44  public function moveFilesTo($destination, $location = Location::STORAGE);
45 
46 
59  public function moveOneFileTo(UploadResult $UploadResult, $destination, $location = Location::STORAGE, $file_name = '', $override_existing = false);
60 
61 
68  public function uploadSizeLimit();
69 
70 
83  public function register(PreProcessor $preProcessor);
84 
85 
97  public function process();
98 
99 
108  public function getResults();
109 
110 
118  public function hasUploads();
119 
127  public function hasBeenProcessed();
128 }
process()
Invokes all preprocessors for each uploaded file in the sequence they got registered.
const STORAGE
The filesystem outside of the ilias web root.
Definition: Location.php:28
$location
Definition: buildRTE.php:44
hasUploads()
Return (bool)true if one ore more file-uploads are in the current request, (bool)false if not...
moveOneFileTo(UploadResult $UploadResult, $destination, $location=Location::STORAGE, $file_name='', $override_existing=false)
Moves a single File (the attributes, metadata and upload-status of which are contained in UploadResul...
getResults()
Returns the results of the processing and moving operation of the uploaded files. ...
Class FileUpload.
Definition: FileUpload.php:21
moveFilesTo($destination, $location=Location::STORAGE)
Moves all uploaded files to the given destination after the processors had processed the files...
uploadSizeLimit()
Returns the current upload size limit in bytes.
hasBeenProcessed()
Return (bool)true if the current upload has already been processed.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...