PHP Класс CraftCli\Support\Downloader\BaseDownloader

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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