\Pydio\Access\Core\StreamPydioStreamWrapper

Converts Guzzle streams into PHP stream resources.

Summary

Methods
Properties
Constants
getResource()
register()
stream_open()
stream_read()
stream_write()
stream_tell()
stream_eof()
stream_seek()
stream_stat()
$context
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$stream
$mode
N/A

Properties

$context

$context : resource

Type

resource

$stream

$stream : \GuzzleHttp\Stream\StreamInterface

Type

\GuzzleHttp\Stream\StreamInterface

$mode

$mode : string

Type

string — r, r+, or w

Methods

getResource()

getResource(\GuzzleHttp\Stream\StreamInterface  $stream) : resource

Returns a resource representing the stream.

Parameters

\GuzzleHttp\Stream\StreamInterface $stream

The stream to get a resource for

Throws

\InvalidArgumentException

if stream is not readable or writable

Returns

resource

register()

register() 

Registers the stream wrapper if needed

stream_open()

stream_open(  $path,   $mode,   $options,   $opened_path) : boolean

Parameters

$path
$mode
$options
$opened_path

Returns

boolean

stream_read()

stream_read(  $count) : string

Parameters

$count

Returns

string

stream_write()

stream_write(  $data) : integer

Parameters

$data

Returns

integer

stream_tell()

stream_tell() : boolean|integer

Returns

boolean|integer

stream_eof()

stream_eof() : boolean

Returns

boolean

stream_seek()

stream_seek(  $offset,   $whence) : boolean

Parameters

$offset
$whence

Returns

boolean

stream_stat()

stream_stat() : array|boolean

Returns

array|boolean