PHP 클래스 Deployment\FtpServer

상속: implements deployment\Server
파일 보기 프로젝트 열기: dg/ftp-deployment

공개 메소드들

메소드 설명
__construct ( $url, $passiveMode = TRUE )
connect ( ) : void Connects to FTP server.
createDir ( $dir ) : void Creates directories on FTP server.
execute ( $command ) : string Executes a command on a remote server.
getDir ( ) : string Returns current directory.
purge ( $dir, callable $progress = NULL ) : void Recursive deletes content of directory or file.
readFile ( $remote, $local ) : void Reads remote file from FTP server.
removeDir ( $dir ) : void Removes directory from FTP server if exists.
removeFile ( $file ) : void Removes file from FTP server if exists.
renameFile ( $old, $new ) : void Renames and rewrites file on FTP server.
writeFile ( $local, $remote, callable $progress = NULL ) : void Uploads file to FTP server.

비공개 메소드들

메소드 설명
ftp ( $cmd ) : mixed
isDir ( $dir ) : boolean Checks if directory exists.
protect ( callable $func, $args = [] )

메소드 상세

__construct() 공개 메소드

public __construct ( $url, $passiveMode = TRUE )

connect() 공개 메소드

Connects to FTP server.
public connect ( ) : void
리턴 void

createDir() 공개 메소드

Creates directories on FTP server.
public createDir ( $dir ) : void
리턴 void

execute() 공개 메소드

Executes a command on a remote server.
public execute ( $command ) : string
리턴 string

getDir() 공개 메소드

Returns current directory.
public getDir ( ) : string
리턴 string

purge() 공개 메소드

Recursive deletes content of directory or file.
public purge ( $dir, callable $progress = NULL ) : void
$progress callable
리턴 void

readFile() 공개 메소드

Reads remote file from FTP server.
public readFile ( $remote, $local ) : void
리턴 void

removeDir() 공개 메소드

Removes directory from FTP server if exists.
public removeDir ( $dir ) : void
리턴 void

removeFile() 공개 메소드

Removes file from FTP server if exists.
public removeFile ( $file ) : void
리턴 void

renameFile() 공개 메소드

Renames and rewrites file on FTP server.
public renameFile ( $old, $new ) : void
리턴 void

writeFile() 공개 메소드

Uploads file to FTP server.
public writeFile ( $local, $remote, callable $progress = NULL ) : void
$progress callable
리턴 void