|
MediaWiki master
|
Inherits Psr7\Stream, and MediaWiki\Rest\CopyableStreamInterface.

Public Member Functions | ||||
| __construct ( $stream, $options=[]) | ||||
| copyToStream ( $target) | ||||
Copy this stream to a specified stream resource.For some streams, this can be implemented without a tight loop in PHP code.Equivalent to reading from the object until EOF and writing the resulting data to $stream. The position will be advanced to the end.Note that $stream is not a StreamInterface object.
| ||||
Definition at line 7 of file Stream.php.
| MediaWiki\Rest\Stream::__construct | ( | $stream, | |
| $options = [] ) |
Definition at line 12 of file Stream.php.
| MediaWiki\Rest\Stream::copyToStream | ( | $target | ) |
Copy this stream to a specified stream resource.For some streams, this can be implemented without a tight loop in PHP code.Equivalent to reading from the object until EOF and writing the resulting data to $stream. The position will be advanced to the end.Note that $stream is not a StreamInterface object.
| resource | $stream | Destination |
Implements MediaWiki\Rest\CopyableStreamInterface.
Definition at line 18 of file Stream.php.