ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
FileUpload.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
ILIAS\FileUpload
;
4
5
use
ILIAS\FileUpload\DTO\UploadResult
;
6
use
ILIAS\FileUpload\Exception\IllegalStateException
;
7
use
ILIAS\FileUpload\Processor\PreProcessor
;
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
}
ILIAS\FileUpload\Processor\PreProcessor
Class PreProcessor.
Definition:
PreProcessor.php:22
ILIAS\FileUpload\FileUpload\process
process()
Invokes all preprocessors for each uploaded file in the sequence they got registered.
ILIAS\FileUpload\Location\STORAGE
const STORAGE
The filesystem outside of the ilias web root.
Definition:
Location.php:28
$location
$location
Definition:
buildRTE.php:44
$destination
$destination
Definition:
saml2-logout.php:50
IllegalStateException
ILIAS\FileUpload\FileUpload\hasUploads
hasUploads()
Return (bool)true if one ore more file-uploads are in the current request, (bool)false if not...
ILIAS\FileUpload\FileUpload\moveOneFileTo
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...
ILIAS\FileUpload\FileUpload\getResults
getResults()
Returns the results of the processing and moving operation of the uploaded files. ...
ILIAS\FileUpload\FileUpload
Class FileUpload.
Definition:
FileUpload.php:21
ILIAS\FileUpload\DTO\UploadResult
Class UploadResult.
Definition:
UploadResult.php:20
ILIAS\FileUpload\FileUpload\moveFilesTo
moveFilesTo($destination, $location=Location::STORAGE)
Moves all uploaded files to the given destination after the processors had processed the files...
ILIAS\FileUpload\FileUpload\uploadSizeLimit
uploadSizeLimit()
Returns the current upload size limit in bytes.
ILIAS\FileUpload\FileUpload\hasBeenProcessed
hasBeenProcessed()
Return (bool)true if the current upload has already been processed.
php
ILIAS\FileUpload
UploadResult
PreProcessor
src
FileUpload
FileUpload.php
Generated on Thu Jan 30 2025 19:02:11 for ILIAS by
1.8.13 (using
Doxyfile
)