Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
GuzzleHttp\Psr7\StreamWrapper Class Reference

Public Member Functions

 stream_cast (int $cast_as)
 
 stream_eof ()
 
 stream_open (string $path, string $mode, int $options, string &$opened_path=null)
 
 stream_read (int $count)
 
 stream_seek (int $offset, int $whence)
 
 stream_stat ()
 
 stream_tell ()
 
 stream_write (string $data)
 
 url_stat (string $path, int $flags)
 

Static Public Member Functions

static createStreamContext (StreamInterface $stream)
 Creates a stream context that can be used to open a stream as a php stream resource.
 
static getResource (StreamInterface $stream)
 Returns a resource representing the stream.
 
static register ()
 Registers the stream wrapper if needed.
 

Public Attributes

resource $context
 

Member Function Documentation

◆ createStreamContext()

static GuzzleHttp\Psr7\StreamWrapper::createStreamContext ( StreamInterface $stream)
static

Creates a stream context that can be used to open a stream as a php stream resource.

Return values
resource

◆ getResource()

static GuzzleHttp\Psr7\StreamWrapper::getResource ( StreamInterface $stream)
static

Returns a resource representing the stream.

Parameters
StreamInterface$streamThe stream to get a resource for
Return values
resource
Exceptions
InvalidArgumentExceptionif stream is not readable or writable

◆ stream_cast()

GuzzleHttp\Psr7\StreamWrapper::stream_cast ( int $cast_as)
Return values
resource|false

◆ stream_stat()

GuzzleHttp\Psr7\StreamWrapper::stream_stat ( )
Return values
array<int|string,int>

◆ url_stat()

GuzzleHttp\Psr7\StreamWrapper::url_stat ( string $path,
int $flags )
Return values
array<int|string,int>

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