Свойство | Тип | Описание | |
---|---|---|---|
$_credentials | array | List of additional credentials required for this VFS backend. | |
$_gids | array | Local cache array for group IDs. | |
$_params | array | Hash containing connection parameters. | |
$_permissions | array | List of permissions and if they can be changed in this VFS backend. | |
$_stream | resource | Variable holding the connection to the ftp server. | |
$_type | string | The FTP server type. | |
$_uids | array | Local cache array for user IDs. |
Метод | Описание | |
---|---|---|
changePermissions ( string $path, string $name, string $permission ) | Changes permissions for an item on the VFS. | |
copy ( string $path, string $name, string $dest, boolean $autocreate = false ) | Copies a file through the backend. | |
createFolder ( string $path, string $name ) | Creates a folder on the VFS. | |
deleteFile ( string $path, string $name ) | Deletes a file from the VFS. | |
deleteFolder ( string $path, string $name, boolean $recursive = false ) | Deletes a folder from the VFS. | |
getCurrentDirectory ( ) : string | Returns the current working directory on the FTP server. | |
isFolder ( string $path, string $name ) : boolean | Checks if a given item is a folder. | |
move ( string $path, string $name, string $dest, boolean $autocreate = false ) | Moves a file through the backend. | |
read ( string $path, string $name ) : string | Retrieves a file from the VFS. | |
readFile ( string $path, string $name ) : string | Retrieves a file from the VFS as an on-disk local file. | |
readStream ( string $path, string $name ) : resource | Open a stream to a file in the VFS. | |
rename ( string $oldpath, string $oldname, string $newpath, string $newname ) | Renames a file in the VFS. | |
size ( string $path, string $name ) : integer | Returns the size of a file. | |
write ( string $path, string $name, string $tmpFile, boolean $autocreate = false ) | Stores a file in the VFS. | |
writeData ( string $path, string $name, string $data, boolean $autocreate = false ) | Stores a file in the VFS from raw data. |
Метод | Описание | |
---|---|---|
_connect ( ) | Attempts to open a connection to the FTP server. | |
_getPath ( string $path, string $name ) : mixed | Returns the full path of an item. | |
_listFolder ( string $path = '', string | array $filter = null, boolean $dotfiles = true, boolean $dironly = false ) : array | Returns an unsorted file list of the specified directory. | |
_setPath ( string $path ) | Changes the current directory on the server. |
protected _listFolder ( string $path = '', string | array $filter = null, boolean $dotfiles = true, boolean $dironly = false ) : array | ||
$path | string | The path of the directory. |
$filter | string | array | Regular expression(s) to filter file/directory name on. |
$dotfiles | boolean | Show dotfiles? |
$dironly | boolean | Show only directories? |
Результат | array | File list. |
public createFolder ( string $path, string $name ) | ||
$path | string | The parent folder. |
$name | string | The name of the new folder. |
public deleteFile ( string $path, string $name ) | ||
$path | string | The path to delete the file from. |
$name | string | The filename to delete. |
public getCurrentDirectory ( ) : string | ||
Результат | string | The current working directory. |
public readStream ( string $path, string $name ) : resource | ||
$path | string | The pathname to the file. |
$name | string | The filename to retrieve. |
Результат | resource | The stream. |
protected array $_credentials | ||
Результат | array |
protected array $_params | ||
Результат | array |
protected array $_permissions | ||
Результат | array |
protected resource $_stream | ||
Результат | resource |