PHP Класс Devise\Media\Files\FileDownloader

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ) Create a new FileDownloader
download ( string $url, string $toPath, string $filename ) : string Download a file from the given $url and save it to $toPath with $filename. If $filename is null then we just use the name from the $url

Описание методов

__construct() публичный Метод

Create a new FileDownloader
public __construct ( )

download() публичный Метод

Download a file from the given $url and save it to $toPath with $filename. If $filename is null then we just use the name from the $url
public download ( string $url, string $toPath, string $filename ) : string
$url string
$toPath string
$filename string
Результат string