MediaWiki REL1_39
Wikimedia\ParamValidator\Util\UploadedFileStream Class Reference

Implementation of StreamInterface for a file in $_FILES. More...

Inheritance diagram for Wikimedia\ParamValidator\Util\UploadedFileStream:
Collaboration diagram for Wikimedia\ParamValidator\Util\UploadedFileStream:

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)
 

Detailed Description

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.

Access: internal
Since
1.34

Definition at line 20 of file UploadedFileStream.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\ParamValidator\Util\UploadedFileStream::__construct ( $filename)
Parameters
string$filename

Definition at line 50 of file UploadedFileStream.php.

◆ __destruct()

Wikimedia\ParamValidator\Util\UploadedFileStream::__destruct ( )

Member Function Documentation

◆ __toString()

Wikimedia\ParamValidator\Util\UploadedFileStream::__toString ( )

◆ close()

Wikimedia\ParamValidator\Util\UploadedFileStream::close ( )

◆ detach()

Wikimedia\ParamValidator\Util\UploadedFileStream::detach ( )

Definition at line 91 of file UploadedFileStream.php.

◆ eof()

Wikimedia\ParamValidator\Util\UploadedFileStream::eof ( )

Definition at line 119 of file UploadedFileStream.php.

◆ getContents()

Wikimedia\ParamValidator\Util\UploadedFileStream::getContents ( )

◆ getMetadata()

Wikimedia\ParamValidator\Util\UploadedFileStream::getMetadata ( $key = null)

Definition at line 165 of file UploadedFileStream.php.

◆ getSize()

Wikimedia\ParamValidator\Util\UploadedFileStream::getSize ( )

Definition at line 97 of file UploadedFileStream.php.

◆ isReadable()

Wikimedia\ParamValidator\Util\UploadedFileStream::isReadable ( )

Definition at line 151 of file UploadedFileStream.php.

◆ isSeekable()

Wikimedia\ParamValidator\Util\UploadedFileStream::isSeekable ( )

Definition at line 128 of file UploadedFileStream.php.

◆ isWritable()

Wikimedia\ParamValidator\Util\UploadedFileStream::isWritable ( )

Definition at line 141 of file UploadedFileStream.php.

◆ read()

Wikimedia\ParamValidator\Util\UploadedFileStream::read ( $length)

Definition at line 155 of file UploadedFileStream.php.

◆ rewind()

Wikimedia\ParamValidator\Util\UploadedFileStream::rewind ( )

◆ seek()

Wikimedia\ParamValidator\Util\UploadedFileStream::seek ( $offset,
$whence = SEEK_SET )

◆ tell()

Wikimedia\ParamValidator\Util\UploadedFileStream::tell ( )

Definition at line 114 of file UploadedFileStream.php.

◆ write()

Wikimedia\ParamValidator\Util\UploadedFileStream::write ( $string)

Definition at line 145 of file UploadedFileStream.php.


The documentation for this class was generated from the following file: