ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FileUpload.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\FileUpload;
4
8
21interface FileUpload
22{
23
45
46
58 public function moveOneFileTo(UploadResult $UploadResult, $destination, $location = Location::STORAGE, $file_name = '', $override_existing = false);
59
60
67 public function uploadSizeLimit();
68
69
82 public function register(PreProcessor $preProcessor);
83
84
96 public function process();
97
98
107 public function getResults();
108
109
117 public function hasUploads();
118
126 public function hasBeenProcessed();
127}
$location
Definition: buildRTE.php:44
An exception for terminatinating execution or to throw for unit testing.
getResults()
Returns the results of the processing and moving operation of the uploaded files.
hasUploads()
Return (bool)true if one ore more file-uploads are in the current request, (bool)false if not.
process()
Invokes all preprocessors for each uploaded file in the sequence they got registered.
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.
moveOneFileTo(UploadResult $UploadResult, $destination, $location=Location::STORAGE, $file_name='', $override_existing=false)
Moves a single UploadResult to the given destination.
const STORAGE
The filesystem outside of the ilias web root.
Definition: Location.php:28
$destination