Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct () | |
downloadAndReturn ($url, $from=null, $to=null, array $params=array()) | |
Fonctions membres publiques hérités de FOFDownloadAdapterAbstract | |
supportsChunkDownload () | |
supportsFileSize () | |
isSupported () | |
getPriority () | |
getName () | |
downloadAndReturn ($url, $from=null, $to=null, array $params=array()) | |
getFileSize ($url) | |
Membres hérités additionnels | |
Champs de données hérités de FOFDownloadAdapterAbstract | |
$priority = 100 | |
$name = '' | |
$isSupported = false | |
$supportsChunkDownload = false | |
$supportsFileSize = false | |
A download adapter using URL fopen() wrappers
__construct | ( | ) |
Références name.
Download a part (or the whole) of a remote URL and return the downloaded data. You are supposed to check the size of the returned data. If it's smaller than what you expected you've reached end of file. If it's empty you have tried reading past EOF. If it's larger than what you expected the server doesn't support chunk downloads.
If this class' supportsChunkDownload returns false you should assume that the $from and $to parameters will be ignored.
string | $url | The remote file's URL |
integer | $from | Byte range to start downloading from. Use null for start of file. |
integer | $to | Byte range to stop downloading. Use null to download the entire file ($from is ignored) |
array | $params | Additional params that will be added before performing the download |
Exception | A generic exception is thrown on error |
Implémente FOFDownloadInterface.