PHP Class Deployment\Helpers

Show file Open project: dg/ftp-deployment

Public Methods

Method Description
fetchUrl ( $url, &$error, array $postData = NULL ) : string Processes HTTP request.
hashFile ( $file ) : string Computes hash.
matchMask ( $path, array $patterns, $isDir = FALSE ) : boolean Matches filename against patterns.

Method Details

fetchUrl() public static method

Processes HTTP request.
public static fetchUrl ( $url, &$error, array $postData = NULL ) : string
$postData array
return string

hashFile() public static method

Computes hash.
public static hashFile ( $file ) : string
return string

matchMask() public static method

Matches filename against patterns.
public static matchMask ( $path, array $patterns, $isDir = FALSE ) : boolean
$patterns array
return boolean