MediaWiki REL1_39
|
Implementation of StreamInterface for a file in $_FILES. More...
Public Member Functions | |
__construct ( $filename) | |
__destruct () | |
__toString () | |
close () | |
detach () | |
eof () | |
getContents () | |
getMetadata ( $key=null) | |
getSize () | |
isReadable () | |
isSeekable () | |
isWritable () | |
read ( $length) | |
rewind () | |
seek ( $offset, $whence=SEEK_SET) | |
tell () | |
write ( $string) | |
Implementation of StreamInterface for a file in $_FILES.
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.
Definition at line 20 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::__construct | ( | $filename | ) |
string | $filename |
Definition at line 50 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::__destruct | ( | ) |
Definition at line 64 of file UploadedFileStream.php.
References Wikimedia\ParamValidator\Util\UploadedFileStream\close().
Wikimedia\ParamValidator\Util\UploadedFileStream::__toString | ( | ) |
Definition at line 68 of file UploadedFileStream.php.
References Wikimedia\ParamValidator\Util\UploadedFileStream\getContents(), and Wikimedia\ParamValidator\Util\UploadedFileStream\seek().
Wikimedia\ParamValidator\Util\UploadedFileStream::close | ( | ) |
Definition at line 78 of file UploadedFileStream.php.
Referenced by Wikimedia\ParamValidator\Util\UploadedFileStream\__destruct().
Wikimedia\ParamValidator\Util\UploadedFileStream::detach | ( | ) |
Definition at line 91 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::eof | ( | ) |
Definition at line 119 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::getContents | ( | ) |
Definition at line 160 of file UploadedFileStream.php.
Referenced by Wikimedia\ParamValidator\Util\UploadedFileStream\__toString().
Wikimedia\ParamValidator\Util\UploadedFileStream::getMetadata | ( | $key = null | ) |
Definition at line 165 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::getSize | ( | ) |
Definition at line 97 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::isReadable | ( | ) |
Definition at line 151 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::isSeekable | ( | ) |
Definition at line 128 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::isWritable | ( | ) |
Definition at line 141 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::read | ( | $length | ) |
Definition at line 155 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::rewind | ( | ) |
Definition at line 137 of file UploadedFileStream.php.
References Wikimedia\ParamValidator\Util\UploadedFileStream\seek().
Wikimedia\ParamValidator\Util\UploadedFileStream::seek | ( | $offset, | |
$whence = SEEK_SET ) |
Definition at line 132 of file UploadedFileStream.php.
Referenced by Wikimedia\ParamValidator\Util\UploadedFileStream\__toString(), and Wikimedia\ParamValidator\Util\UploadedFileStream\rewind().
Wikimedia\ParamValidator\Util\UploadedFileStream::tell | ( | ) |
Definition at line 114 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::write | ( | $string | ) |
Definition at line 145 of file UploadedFileStream.php.