MediaWiki master
Wikimedia\ParamValidator\Util\UploadedFileStream Class Reference

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

Inherits Stringable, and StreamInterface.

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 21 of file UploadedFileStream.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 51 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 92 of file UploadedFileStream.php.

◆ eof()

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

Definition at line 120 of file UploadedFileStream.php.

◆ getContents()

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

◆ getMetadata()

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

Definition at line 166 of file UploadedFileStream.php.

◆ getSize()

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

Definition at line 98 of file UploadedFileStream.php.

◆ isReadable()

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

Definition at line 152 of file UploadedFileStream.php.

◆ isSeekable()

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

Definition at line 129 of file UploadedFileStream.php.

◆ isWritable()

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

Definition at line 142 of file UploadedFileStream.php.

◆ read()

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

Definition at line 156 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 115 of file UploadedFileStream.php.

◆ write()

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

Definition at line 146 of file UploadedFileStream.php.


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