PHP Class Gaufrette\Adapter\PhpseclibSftp

Inheritance: implements Gaufrette\Adapter, implements Gaufrette\Adapter\FileFactory, implements Gaufrette\Adapter\ListKeysAware
Exibir arquivo Open project: knplabs/gaufrette

Protected Properties

Property Type Description
$create
$directory
$initialized
$sftp

Public Methods

Method Description
__construct ( SFTP $sftp, string $directory = null, boolean $create = false )
createFile ( $key, Gaufrette\Filesystem $filesystem )
delete ( $key )
exists ( $key )
isDirectory ( $key )
keys ( )
listKeys ( $prefix = '' )
mtime ( $key )
read ( $key )
rename ( $sourceKey, $targetKey )
write ( $key, $content )

Protected Methods

Method Description
computePath ( $key )
ensureDirectoryExists ( $directory, $create )
fetchKeys ( $directory = '', $onlyKeys = true )
initialize ( ) Performs the adapter's initialization.

Method Details

__construct() public method

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

computePath() protected method

protected computePath ( $key )

createFile() public method

public createFile ( $key, Gaufrette\Filesystem $filesystem )
$filesystem Gaufrette\Filesystem

delete() public method

public delete ( $key )

ensureDirectoryExists() protected method

protected ensureDirectoryExists ( $directory, $create )

exists() public method

public exists ( $key )

fetchKeys() protected method

protected fetchKeys ( $directory = '', $onlyKeys = true )

initialize() protected method

It will ensure the root directory exists
protected initialize ( )

isDirectory() public method

public isDirectory ( $key )

keys() public method

public keys ( )

listKeys() public method

public listKeys ( $prefix = '' )

mtime() public method

public mtime ( $key )

read() public method

public read ( $key )

rename() public method

public rename ( $sourceKey, $targetKey )

write() public method

public write ( $key, $content )

Property Details

$create protected_oe property

protected $create

$directory protected_oe property

protected $directory

$initialized protected_oe property

protected $initialized

$sftp protected_oe property

protected $sftp