Class FOFDownloadAdapterFopen
A download adapter using URL fopen() wrappers
- FOFDownloadAdapterAbstract implements FOFDownloadInterface
- FOFDownloadAdapterFopen implements FOFDownloadInterface
Package: FrameworkOnFramework\dispatcher
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Located at fof/download/adapter/fopen.php
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt
Located at fof/download/adapter/fopen.php
Methods summary
public
|
|
public
string
|
#
downloadAndReturn( string $url, integer $from = null, integer $to = null, array $params = array() )
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. |
Methods inherited from FOFDownloadAdapterAbstract
getFileSize()
,
getName()
,
getPriority()
,
isSupported()
,
supportsChunkDownload()
,
supportsFileSize()
Magic methods summary
Properties summary
Properties inherited from FOFDownloadAdapterAbstract
$isSupported
,
$name
,
$priority
,
$supportsChunkDownload
,
$supportsFileSize