Свойство | Тип | Описание | |
---|---|---|---|
$logger | |||
$options |
Метод | Описание | |
---|---|---|
__construct ( CLIFramework\Logger $logger, |
||
download ( string $url, string $targetFilePath = null ) : boolean | string | ||
hasSupport ( $requireSsl ) | ||
request ( $url ) : boolean | string | fetch the remote content. | |
resolveDownloadFileName ( string $url ) : string | boolean |
Метод | Описание | |
---|---|---|
process ( $url, $targetFilePath ) |
public __construct ( CLIFramework\Logger $logger, |
||
$logger | CLIFramework\Logger | |
$options |
public download ( string $url, string $targetFilePath = null ) : boolean | string | ||
$url | string | the url to be downloaded |
$targetFilePath | string | the path where file to be saved. null means auto-generated temp path |
Результат | boolean | string | if download successfully, return target file path, otherwise return false. |