PHP 클래스 CraftCli\Support\Downloader\BaseDownloader

파일 보기 프로젝트 열기: rsanchez/craft-cli

보호된 프로퍼티들

프로퍼티 타입 설명
$output Symfony\Component\Console\Output\OutputInterface
$path string Path to download the file
$progressBar Symfony\Component\Console\Helper\ProgressBar
$url string Url to download

공개 메소드들

메소드 설명
download ( ) : string Download the file to the specified path
setOutput ( Symfony\Component\Console\Output\OutputInterface $output ) Set the output

보호된 메소드들

메소드 설명
showDownloadProgress ( $notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax ) : void ProgressBar callback

메소드 상세

download() 공개 메소드

Download the file to the specified path
public download ( ) : string
리턴 string path to the downloaded file

setOutput() 공개 메소드

Set the output
public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

showDownloadProgress() 보호된 메소드

ProgressBar callback
protected showDownloadProgress ( $notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax ) : void
$notificationCode
$severity
$message
$messageCode
$bytesTransferred
$bytesMax
리턴 void

프로퍼티 상세

$output 보호되어 있는 프로퍼티

protected OutputInterface,Symfony\Component\Console\Output $output
리턴 Symfony\Component\Console\Output\OutputInterface

$path 보호되어 있는 프로퍼티

Path to download the file
protected string $path
리턴 string

$progressBar 보호되어 있는 프로퍼티

protected ProgressBar,Symfony\Component\Console\Helper $progressBar
리턴 Symfony\Component\Console\Helper\ProgressBar

$url 보호되어 있는 프로퍼티

Url to download
protected string $url
리턴 string