PHP 클래스 Gaufrette\Adapter\Ftp

This adapter is not cached, if you need it to be cached, please see the CachedFtp adapter which is a proxy class implementing a cache layer.
저자: Antoine Hérault ([email protected])
상속: implements Gaufrette\Adapter
파일 보기 프로젝트 열기: knplabs/gaufrette

보호된 프로퍼티들

프로퍼티 타입 설명
$connection
$create
$directory
$fileData
$host
$mode
$passive
$password
$port
$ssl
$username
$utf8

공개 메소드들

메소드 설명
__construct ( string $directory, string $host, array $options = [] )
createFile ( $key, Gaufrette\Filesystem $filesystem )
delete ( $key )
exists ( $key )
isDirectory ( $key )
keys ( )
listDirectory ( string $directory = '' ) : array Lists files from the specified directory. If a pattern is specified, it only returns files matching it.
listKeys ( $prefix = '' )
mtime ( $key )
read ( $key )
rename ( $sourceKey, $targetKey )
write ( $key, $content )

보호된 메소드들

메소드 설명
createDirectory ( string $directory ) Creates the specified directory and its parent directories.
ensureDirectoryExists ( string $directory, boolean $create = false ) Ensures the specified directory exists. If it does not, and the create parameter is set to TRUE, it tries to create it.

비공개 메소드들

메소드 설명
close ( ) Closes the adapter's ftp connection.
computePath ( string $key ) Computes the path for the given key.
connect ( ) Opens the adapter's ftp connection.
fetchKeys ( $directory = '', $onlyKeys = true )
getConnection ( ) : resource Returns an opened ftp connection resource. If the connection is not already opened, it open it before.
isConnected ( ) : boolean Indicates whether the adapter has an open ftp connection.
isDir ( string $directory ) : boolean
isLinuxListing ( $info )
parseRawlist ( array $rawlist ) : array Parses the given raw list.

메소드 상세

__construct() 공개 메소드

public __construct ( string $directory, string $host, array $options = [] )
$directory string The directory to use in the ftp server
$host string The host of the ftp server
$options array The options like port, username, password, passive, create, mode

createDirectory() 보호된 메소드

Creates the specified directory and its parent directories.
protected createDirectory ( string $directory )
$directory string Directory to create

createFile() 공개 메소드

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

delete() 공개 메소드

public delete ( $key )

ensureDirectoryExists() 보호된 메소드

Ensures the specified directory exists. If it does not, and the create parameter is set to TRUE, it tries to create it.
protected ensureDirectoryExists ( string $directory, boolean $create = false )
$directory string
$create boolean Whether to create the directory if it does not exist

exists() 공개 메소드

public exists ( $key )

isDirectory() 공개 메소드

public isDirectory ( $key )

keys() 공개 메소드

public keys ( )

listDirectory() 공개 메소드

Lists files from the specified directory. If a pattern is specified, it only returns files matching it.
public listDirectory ( string $directory = '' ) : array
$directory string The path of the directory to list from
리턴 array An array of keys and dirs

listKeys() 공개 메소드

public listKeys ( $prefix = '' )

mtime() 공개 메소드

public mtime ( $key )

read() 공개 메소드

public read ( $key )

rename() 공개 메소드

public rename ( $sourceKey, $targetKey )

write() 공개 메소드

public write ( $key, $content )

프로퍼티 상세

$connection 보호되어 있는 프로퍼티

protected $connection

$create 보호되어 있는 프로퍼티

protected $create

$directory 보호되어 있는 프로퍼티

protected $directory

$fileData 보호되어 있는 프로퍼티

protected $fileData

$host 보호되어 있는 프로퍼티

protected $host

$mode 보호되어 있는 프로퍼티

protected $mode

$passive 보호되어 있는 프로퍼티

protected $passive

$password 보호되어 있는 프로퍼티

protected $password

$port 보호되어 있는 프로퍼티

protected $port

$ssl 보호되어 있는 프로퍼티

protected $ssl

$username 보호되어 있는 프로퍼티

protected $username

$utf8 보호되어 있는 프로퍼티

protected $utf8