|
MediaWiki master
|
A simple implementation of UploadedFileInterface. More...
Inherits UploadedFileInterface.

Public Member Functions | |
| __construct (array $data, $fromUpload=true) | |
| getClientFilename () | |
| getClientMediaType () | |
| getError () | |
| getSize () | |
| getStream () | |
| moveTo ( $targetPath) | |
A simple implementation of UploadedFileInterface.
This exists so ParamValidator needn't depend on any specific PSR-7 implementation for a class implementing UploadedFileInterface. It shouldn't be used directly by other code, other than perhaps when implementing Callbacks::getUploadedFile() when another PSR-7 library is not already in use.
Definition at line 20 of file UploadedFile.php.
| Wikimedia\ParamValidator\Util\UploadedFile::__construct | ( | array | $data, |
| $fromUpload = true ) |
| array | $data | Data from $_FILES |
| bool | $fromUpload | Set false if using this task with data not from $_FILES. Intended for unit testing. |
Definition at line 39 of file UploadedFile.php.
| Wikimedia\ParamValidator\Util\UploadedFile::getClientFilename | ( | ) |
Definition at line 134 of file UploadedFile.php.
| Wikimedia\ParamValidator\Util\UploadedFile::getClientMediaType | ( | ) |
Definition at line 140 of file UploadedFile.php.
| Wikimedia\ParamValidator\Util\UploadedFile::getError | ( | ) |
Definition at line 129 of file UploadedFile.php.
| Wikimedia\ParamValidator\Util\UploadedFile::getSize | ( | ) |
Definition at line 124 of file UploadedFile.php.
| Wikimedia\ParamValidator\Util\UploadedFile::getStream | ( | ) |
Definition at line 87 of file UploadedFile.php.
| Wikimedia\ParamValidator\Util\UploadedFile::moveTo | ( | $targetPath | ) |
Definition at line 98 of file UploadedFile.php.