ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
FileUpload.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\FileUpload;
20 
24 
37 interface FileUpload
38 {
55  public function moveFilesTo(string $destination, int $location = Location::STORAGE): void;
56 
57 
68  public function moveOneFileTo(
69  UploadResult $uploadResult,
70  string $destination,
72  string $file_name = '',
73  bool $override_existing = false
74  ): bool;
75 
76 
82  public function uploadSizeLimit(): int;
83 
84 
96  public function register(PreProcessor $preProcessor): void;
97 
98 
109  public function process(): void;
110 
111 
120  public function getResults(): array;
121 
122 
129  public function hasUploads(): bool;
130 
137  public function hasBeenProcessed(): bool;
138 }
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:43
$location
Definition: buildRTE.php:22
moveFilesTo(string $destination, int $location=Location::STORAGE)
Moves all uploaded files to the given destination after the processors had processed the files...
hasUploads()
Return (bool)true if one ore more file-uploads are in the current request, (bool)false if not...
moveOneFileTo(UploadResult $uploadResult, string $destination, int $location=Location::STORAGE, string $file_name='', bool $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:37
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...