PHP Interface Deployment\Server

Afficher le fichier Open project: dg/ftp-deployment Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

connect() public méthode

Connects to server.
public connect ( ) : void
Résultat void

createDir() public méthode

Creates directories on server. Path is absolute.
public createDir ( $dir ) : void
Résultat void

execute() public méthode

Executes a command on a remote server.
public execute ( $command ) : string
Résultat string

getDir() public méthode

Returns current directory.
public getDir ( ) : string
Résultat string

purge() public méthode

Recursive deletes content of directory or file. Path is absolute.
public purge ( $path, callable $progress = NULL ) : void
$progress callable
Résultat void

readFile() public méthode

Reads file from server. Paths are absolute.
public readFile ( $remote, $local ) : void
Résultat void

removeDir() public méthode

Removes directory from server if exists. Path is absolute.
public removeDir ( $dir ) : void
Résultat void

removeFile() public méthode

Removes file from server if exists. Path is absolute.
public removeFile ( $file ) : void
Résultat void

renameFile() public méthode

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

writeFile() public méthode

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