Open Journal Systems  3.3.0
GuzzleHttp\Psr7\StreamWrapper Class Reference

Public Member Functions

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

Static Public Member Functions

static createStreamContext (StreamInterface $stream)
 
static getResource (StreamInterface $stream)
 
static register ()
 

Data Fields

 $context
 

Detailed Description

Converts Guzzle streams into PHP stream resources.

Definition at line 9 of file StreamWrapper.php.

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.

Parameters
StreamInterface$stream
Returns
resource

Definition at line 60 of file StreamWrapper.php.

◆ getResource()

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

Returns a resource representing the stream.

Parameters
StreamInterface$streamThe stream to get a resource for
Returns
resource
Exceptions

Definition at line 37 of file StreamWrapper.php.

References GuzzleHttp\Psr7\StreamWrapper\register().

Referenced by GuzzleHttp\Psr7\InflateStream\__construct().

◆ register()

static GuzzleHttp\Psr7\StreamWrapper::register ( )
static

Registers the stream wrapper if needed

Definition at line 70 of file StreamWrapper.php.

Referenced by GuzzleHttp\Psr7\StreamWrapper\getResource().

◆ stream_cast()

GuzzleHttp\Psr7\StreamWrapper::stream_cast (   $cast_as)

Definition at line 118 of file StreamWrapper.php.

◆ stream_eof()

GuzzleHttp\Psr7\StreamWrapper::stream_eof ( )

Definition at line 106 of file StreamWrapper.php.

◆ stream_open()

GuzzleHttp\Psr7\StreamWrapper::stream_open (   $path,
  $mode,
  $options,
$opened_path 
)

Definition at line 77 of file StreamWrapper.php.

◆ stream_read()

GuzzleHttp\Psr7\StreamWrapper::stream_read (   $count)

Definition at line 91 of file StreamWrapper.php.

◆ stream_seek()

GuzzleHttp\Psr7\StreamWrapper::stream_seek (   $offset,
  $whence 
)

Definition at line 111 of file StreamWrapper.php.

◆ stream_stat()

GuzzleHttp\Psr7\StreamWrapper::stream_stat ( )

Definition at line 125 of file StreamWrapper.php.

◆ stream_tell()

GuzzleHttp\Psr7\StreamWrapper::stream_tell ( )

Definition at line 101 of file StreamWrapper.php.

◆ stream_write()

GuzzleHttp\Psr7\StreamWrapper::stream_write (   $data)

Definition at line 96 of file StreamWrapper.php.

◆ url_stat()

GuzzleHttp\Psr7\StreamWrapper::url_stat (   $path,
  $flags 
)

Definition at line 152 of file StreamWrapper.php.

Field Documentation

◆ $context

resource GuzzleHttp\Psr7\StreamWrapper::$context

Definition at line 15 of file StreamWrapper.php.


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