Properties

$resource

$resource : 

Type

$size

$size : 

Type

$lastModifiedTime

$lastModifiedTime : 

Type

$customMetadata

$customMetadata : 

Type

$client

$client : \GuzzleHttp\Command\Guzzle\GuzzleClient

Type

\GuzzleHttp\Command\Guzzle\GuzzleClient

$httpClient

$httpClient : \GuzzleHttp\Client

Type

\GuzzleHttp\Client

$command

$command : \GuzzleHttp\Command\Command

Type

\GuzzleHttp\Command\Command

$seekable

$seekable : 

Type

$readable

$readable : 

Type

$writable

$writable : 

Type

$readWriteHash

$readWriteHash : array

Type

array — Hash of readable and writable stream types

Methods

__construct()

__construct(  $resource, \Pydio\Access\Core\Model\AJXP_Node  $node,   $options = array()) 

Stream constructor.

Parameters

$resource
\Pydio\Access\Core\Model\AJXP_Node $node
$options

Throws

\Exception

factory()

factory(string  $resource = '', string  $mode = "r+", array  $options = array()) : \GuzzleHttp\Stream\Stream|\Pydio\Access\Core\Stream\Stream

Parameters

string $resource
string $mode
array $options

Returns

\GuzzleHttp\Stream\Stream|\Pydio\Access\Core\Stream\Stream

getContextOption()

getContextOption(\Pydio\Core\Model\ContextInterface  $ctx, null  $key = null, null  $default = null) : null

Parameters

\Pydio\Core\Model\ContextInterface $ctx
null $key
null $default

Returns

null

__toString()

__toString() : string

Returns

string

getContents()

getContents() : \GuzzleHttp\Ring\Future\FutureInterface|mixed|null

Returns

\GuzzleHttp\Ring\Future\FutureInterface|mixed|null

close()

close() 

detach()

detach() : mixed

Returns

mixed

attach()

attach(resource  $stream) 

Parameters

resource $stream

getSize()

getSize() 

Returns the size of the limited subset of data {@inheritdoc}

getLastModifiedTime()

getLastModifiedTime() 

Returns the size of the limited subset of data {@inheritdoc}

isFile()

isFile() : boolean|null

Returns

boolean|null

isReadable()

isReadable() : boolean|mixed

Returns

boolean|mixed

isWritable()

isWritable() : boolean|mixed

Returns

boolean|mixed

isSeekable()

isSeekable() : boolean

Returns

boolean

eof()

eof() : boolean

Returns

boolean

seek()

seek(  $offset,   $whence = SEEK_SET) 

Allow for a bounded seek on the read limited stream {@inheritdoc}

Parameters

$offset
$whence

tell()

tell() 

Give a relative tell() {@inheritdoc}

read()

read(integer  $length) : boolean|string

Parameters

integer $length

Returns

boolean|string

write()

write(string  $buffer) : integer|null

Parameters

string $buffer

Returns

integer|null

getMetadata()

getMetadata(null  $key = null) : array|mixed|null

Parameters

null $key

Returns

array|mixed|null

stat()

stat() : \GuzzleHttp\Ring\Future\FutureInterface|mixed|null

Returns

\GuzzleHttp\Ring\Future\FutureInterface|mixed|null

mkdir()

mkdir() : boolean

Returns

boolean

rmdir()

rmdir() : boolean

Returns

boolean

rename()

rename(  $newNode) : boolean

Parameters

$newNode

Returns

boolean

prepare()

prepare(null  $cmdName = null) 

Parameters

null $cmdName

Throws

\Exception

ls()

ls() : \GuzzleHttp\Ring\Future\FutureInterface|mixed|null

Returns

\GuzzleHttp\Ring\Future\FutureInterface|mixed|null

get()

get() : \GuzzleHttp\Ring\Future\FutureInterface|mixed|null

Returns

\GuzzleHttp\Ring\Future\FutureInterface|mixed|null