PHP Класс Gaufrette\Adapter\Sftp

Наследование: implements Gaufrette\Adapter, implements Gaufrette\Adapter\ChecksumCalculator
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$create
$directory
$initialized
$sftp

Открытые методы

Метод Описание
__construct ( Ssh\Sftp $sftp, string $directory = null, boolean $create = false )
checksum ( $key )
computeKey ( string $path ) : string Computes the key from the specified path.
delete ( $key )
exists ( $key )
isDirectory ( $key )
keys ( )
mtime ( $key )
read ( $key )
rename ( $sourceKey, $targetKey )
write ( $key, $content )

Защищенные методы

Метод Описание
computePath ( string $key ) : string Computes the path for the specified key.
createDirectory ( string $directory ) : boolean Creates the specified directory and its parents.
ensureDirectoryExists ( string $directory, boolean $create = false ) Ensures the specified directory exists.
initialize ( ) Performs the adapter's initialization.

Описание методов

__construct() публичный Метод

public __construct ( Ssh\Sftp $sftp, string $directory = null, boolean $create = false )
$sftp Ssh\Sftp An Sftp instance
$directory string The distant directory
$create boolean Whether to create the remote directory if it does not exist

checksum() публичный Метод

public checksum ( $key )

computeKey() публичный Метод

Computes the key from the specified path.
public computeKey ( string $path ) : string
$path string
Результат string

computePath() защищенный Метод

Computes the path for the specified key.
protected computePath ( string $key ) : string
$key string
Результат string

createDirectory() защищенный Метод

Creates the specified directory and its parents.
protected createDirectory ( string $directory ) : boolean
$directory string The directory to create
Результат boolean TRUE on success, or FALSE on failure

delete() публичный Метод

public delete ( $key )

ensureDirectoryExists() защищенный Метод

Ensures the specified directory exists.
protected ensureDirectoryExists ( string $directory, boolean $create = false )
$directory string The directory that we ensure the existence
$create boolean Whether to create it if it does not exist

exists() публичный Метод

public exists ( $key )

initialize() защищенный Метод

It will ensure the root directory exists
protected initialize ( )

isDirectory() публичный Метод

public isDirectory ( $key )

keys() публичный Метод

public keys ( )

mtime() публичный Метод

public mtime ( $key )

read() публичный Метод

public read ( $key )

rename() публичный Метод

public rename ( $sourceKey, $targetKey )

write() публичный Метод

public write ( $key, $content )

Описание свойств

$create защищенное свойство

protected $create

$directory защищенное свойство

protected $directory

$initialized защищенное свойство

protected $initialized

$sftp защищенное свойство

protected $sftp