PHP Интерфейс Deployment\Server

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
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