\Pydio\Access\CoreIAjxpWrapper

Defines the methods that an access driver must implement to be considered as a file wrapper.

Summary

Methods
Constants
getRealFSReference()
getResolvedOptionsForNode()
copyFileInStream()
changeMode()
isRemote()
isSeekable()
dir_closedir()
dir_opendir()
dir_readdir()
dir_rewinddir()
mkdir()
rename()
rmdir()
stream_close()
stream_eof()
stream_flush()
stream_open()
stream_read()
stream_seek()
stream_stat()
stream_tell()
stream_write()
unlink()
url_stat()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getRealFSReference()

getRealFSReference(string  $path, boolean  $persistent = false) 

Get a "usable" reference to a file : the real file or a tmp copy.

Parameters

string $path
boolean $persistent

getResolvedOptionsForNode()

getResolvedOptionsForNode(\Pydio\Access\Core\Model\AJXP_Node  $node) : array

Parameters

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

Returns

array

copyFileInStream()

copyFileInStream(string  $path, resource  $stream) 

Read a file (by chunks) and copy the data directly inside the given stream.

Parameters

string $path
resource $stream

changeMode()

changeMode(string  $path, \Pydio\Access\Core\number  $chmodValue) 

Chmod implementation for this type of access.

Parameters

string $path
\Pydio\Access\Core\number $chmodValue

isRemote()

isRemote() : boolean

Describe whether the current wrapper operates on a remote server or not.

Returns

boolean

isSeekable()

isSeekable(String  $url) : boolean

Describe whether the current wrapper can rewind a stream or not.

Parameters

String $url

Url of the resource

Returns

boolean

dir_closedir()

dir_closedir() : boolean

Returns

boolean

dir_opendir()

dir_opendir(string  $path, integer  $options) : boolean

Enter description here.

..

Parameters

string $path
integer $options

Returns

boolean

dir_readdir()

dir_readdir() : string

Enter description here.

..

Returns

string

dir_rewinddir()

dir_rewinddir() : boolean

Enter description here.

..

Returns

boolean

mkdir()

mkdir(string  $path, integer  $mode, integer  $options) : boolean

Enter description here.

..

Parameters

string $path
integer $mode
integer $options

Returns

boolean

rename()

rename(string  $path_from, string  $path_to) : boolean

Enter description here.

..

Parameters

string $path_from
string $path_to

Returns

boolean

rmdir()

rmdir(string  $path, integer  $options) : boolean

Enter description here.

..

Parameters

string $path
integer $options

Returns

boolean

stream_close()

stream_close() 

Enter description here.

..

stream_eof()

stream_eof() : boolean

Enter description here.

..

Returns

boolean

stream_flush()

stream_flush() : boolean

Enter description here.

..

Returns

boolean

stream_open()

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

Enter description here.

..

Parameters

string $path
string $mode
integer $options
$opened_path

Returns

boolean

stream_read()

stream_read(integer  $count) : string

Enter description here.

..

Parameters

integer $count

Returns

string

stream_seek()

stream_seek(integer  $offset, integer  $whence = SEEK_SET) : boolean

Enter description here.

..

Parameters

integer $offset
integer $whence

= SEEK_SET

Returns

boolean

stream_stat()

stream_stat() : array

Enter description here.

..

Returns

array

stream_tell()

stream_tell() : integer

Enter description here.

..

Returns

integer

stream_write()

stream_write(string  $data) : integer

Enter description here.

..

Parameters

string $data

Returns

integer

unlink()

unlink(string  $path) : boolean

Enter description here.

..

Parameters

string $path

Returns

boolean

url_stat()

url_stat(string  $path, integer  $flags) : array

Enter description here.

..

Parameters

string $path
integer $flags

Returns

array