Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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{dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int }

◆ url_stat()

GuzzleHttp\Psr7\StreamWrapper::url_stat ( string $path,
int $flags )
Return values
array{dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int }

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