PHP Class Devise\Media\Files\FileDownloader

Datei anzeigen Open project: devisephp/cms Class Usage Examples

Public Methods

Method Description
__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

Method Details

__construct() public method

Create a new FileDownloader
public __construct ( )

download() public method

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
return string