PHP Class Devise\Media\Files\FileDownloader

Afficher le fichier Open project: devisephp/cms Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Create a new FileDownloader
public __construct ( )

download() public méthode

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
Résultat string