Properties

$host

$host : 

Type

$port

$port : 

Type

$secure

$secure : 

Type

$path

$path : 

Type

$user

$user : 

Type

$password

$password : 

Type

$ftpActive

$ftpActive : 

Type

$repoCharset

$repoCharset : 

Type

$repositoryId

$repositoryId : 

Type

$fp

$fp : 

Type

$crtMode

$crtMode : 

Type

$crtLink

$crtLink : 

Type

$crtTarget

$crtTarget : 

Type

$dirContentLoopPath

$dirContentLoopPath : 

Type

$dirContent

$dirContent : 

Type

$dirContentKeys

$dirContentKeys : 

Type

$dirContentIndex

$dirContentIndex : 

Type

$monthes

$monthes : 

Type

Methods

getRealFSReference()

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

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

Parameters

string $path
boolean $persistent

Returns

string

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

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

Throws

\Pydio\Core\Exception\PydioException
\Exception

changeMode()

changeMode(string  $path, \Pydio\Access\Driver\StreamProvider\FTP\number  $chmodValue) 

Chmod implementation for this type of access.

Parameters

string $path
\Pydio\Access\Driver\StreamProvider\FTP\number $chmodValue

Throws

\Pydio\Core\Exception\PydioException
\Exception

stream_open()

stream_open(string  $url, string  $mode, integer  $options, string  $context) : boolean

Enter description here.

..

Parameters

string $url
string $mode
integer $options
string $context

Throws

\Pydio\Core\Exception\PydioException
\Exception

Returns

boolean

stream_stat()

stream_stat() : array

Enter description here.

..

Returns

array

stream_seek()

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

Enter description here.

..

Parameters

integer $offset
integer $whence

= SEEK_SET

Returns

boolean

stream_tell()

stream_tell() : integer

Enter description here.

..

Returns

integer

stream_read()

stream_read(integer  $count) : string

Enter description here.

..

Parameters

integer $count

Returns

string

stream_write()

stream_write(string  $data) : integer

Enter description here.

..

Parameters

string $data

Returns

integer

stream_eof()

stream_eof() : boolean

Enter description here.

..

Returns

boolean

stream_close()

stream_close() 

Enter description here.

..

fput_quota_hack()

fput_quota_hack(  $errno,   $errstr,   $errfile,   $errline,   $errcontext) 

Parameters

$errno
$errstr
$errfile
$errline
$errcontext

Throws

\Pydio\Core\Exception\PydioException

stream_flush()

stream_flush() : boolean

Enter description here.

..

Returns

boolean

unlink()

unlink(string  $url) : boolean

Enter description here.

..

Parameters

string $url

Returns

boolean

rmdir()

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

Enter description here.

..

Parameters

string $url
integer $options

Returns

boolean

mkdir()

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

Enter description here.

..

Parameters

string $url
integer $mode
integer $options

Returns

boolean

rename()

rename(string  $from, string  $to) : boolean

Enter description here.

..

Parameters

string $from
string $to

Returns

boolean

url_stat()

url_stat(string  $path, integer  $flags) : array|mixed|null

Enter description here.

..

Parameters

string $path
integer $flags

Throws

\Pydio\Core\Exception\PydioException
\Exception

Returns

array|mixed|null

dir_opendir()

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

Enter description here.

..

Parameters

string $url
integer $options

Throws

\Pydio\Core\Exception\PydioException
\Exception

Returns

boolean

dir_closedir()

dir_closedir() : boolean

Returns

boolean

dir_readdir()

dir_readdir() : boolean

Enter description here.

..

Returns

boolean

dir_rewinddir()

dir_rewinddir() : boolean

Enter description here.

..

Returns

boolean

getResolvedOptionsForNode()

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

Parameters

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

Returns

array

getRemoteUserId()

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

Parameters

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

Returns

array —

Array(UID, GID) to be used to compute permission

initUrl()

initUrl(  $url) 

Parameters

$url

Throws

\Exception
\Pydio\Core\Exception\PydioException

rawList()

rawList(  $link,   $serverPath, string  $target = 'd', boolean  $retry = true) : array

Parameters

$link
$serverPath
string $target
boolean $retry

Returns

array

rawListEntryToStat()

rawListEntryToStat(  $entry, boolean  $filterStatPerms = false) : array

Parameters

$entry
boolean $filterStatPerms

Returns

array

parseUrl()

parseUrl(  $url, boolean  $forceLogin = false) : array

Parameters

$url
boolean $forceLogin

Throws

\Pydio\Core\Exception\PydioException
\Exception

Returns

array

buildRealUrl()

buildRealUrl(  $url) : string

Parameters

$url

Throws

\Pydio\Core\Exception\PydioException
\Exception

Returns

string

getServerFeatures()

getServerFeatures(\Pydio\Core\Model\ContextInterface  $ctx) : array

This method retrieves the FTP server features as described in RFC2389 A decent FTP server support MLST command to list file using UTF-8 encoding

Parameters

\Pydio\Core\Model\ContextInterface $ctx

Throws

\Pydio\Core\Exception\PydioException
\Exception

Returns

array —

of features (see code)

createFTPLink()

createFTPLink() : boolean|resource

Throws

\Pydio\Core\Exception\PydioException

Returns

boolean|resource

convertingChmod()

convertingChmod(  $permissions, boolean  $filterForStat = false) : integer

Parameters

$permissions
boolean $filterForStat

Returns

integer