PHP 인터페이스 Deployment\Server

파일 보기 프로젝트 열기: dg/ftp-deployment 0 사용 예제들

공개 메소드들

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

메소드 상세

connect() 공개 메소드

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

createDir() 공개 메소드

Creates directories on server. Path is absolute.
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. Path is absolute.
public purge ( $path, callable $progress = NULL ) : void
$progress callable
리턴 void

readFile() 공개 메소드

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

removeDir() 공개 메소드

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

removeFile() 공개 메소드

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

renameFile() 공개 메소드

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

writeFile() 공개 메소드

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