MediaWiki master
|
Implementation of StreamInterface for a file in $_FILES. More...
Inherits Stringable, and StreamInterface.
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 21 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::__construct | ( | $filename | ) |
string | $filename |
Definition at line 51 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::__destruct | ( | ) |
Definition at line 65 of file UploadedFileStream.php.
References Wikimedia\ParamValidator\Util\UploadedFileStream\close().
Wikimedia\ParamValidator\Util\UploadedFileStream::__toString | ( | ) |
Definition at line 69 of file UploadedFileStream.php.
References Wikimedia\ParamValidator\Util\UploadedFileStream\getContents(), and Wikimedia\ParamValidator\Util\UploadedFileStream\seek().
Wikimedia\ParamValidator\Util\UploadedFileStream::close | ( | ) |
Definition at line 79 of file UploadedFileStream.php.
Referenced by Wikimedia\ParamValidator\Util\UploadedFileStream\__destruct().
Wikimedia\ParamValidator\Util\UploadedFileStream::detach | ( | ) |
Definition at line 92 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::eof | ( | ) |
Definition at line 120 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::getContents | ( | ) |
Definition at line 161 of file UploadedFileStream.php.
Referenced by Wikimedia\ParamValidator\Util\UploadedFileStream\__toString().
Wikimedia\ParamValidator\Util\UploadedFileStream::getMetadata | ( | $key = null | ) |
Definition at line 166 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::getSize | ( | ) |
Definition at line 98 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::isReadable | ( | ) |
Definition at line 152 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::isSeekable | ( | ) |
Definition at line 129 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::isWritable | ( | ) |
Definition at line 142 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::read | ( | $length | ) |
Definition at line 156 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::rewind | ( | ) |
Definition at line 138 of file UploadedFileStream.php.
References Wikimedia\ParamValidator\Util\UploadedFileStream\seek().
Wikimedia\ParamValidator\Util\UploadedFileStream::seek | ( | $offset, | |
$whence = SEEK_SET ) |
Definition at line 133 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 115 of file UploadedFileStream.php.
Wikimedia\ParamValidator\Util\UploadedFileStream::write | ( | $string | ) |
Definition at line 146 of file UploadedFileStream.php.