Class FOFDownloadAdapterAbstract
Abstract base class for download adapters
- FOFDownloadAdapterAbstract implements FOFDownloadInterface
Direct known subclasses
Abstract
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/abstract.php
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/abstract.php
Methods summary
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
getPriority( )
Get the priority of this adapter. If multiple download adapters are supported on a site, the one with the highest priority will be used. |
public
string
|
|
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. |
public
integer
|
Magic methods summary
Properties summary
public
integer
|
$priority | |
public
string
|
$name | |
public
boolean
|
$isSupported | |
public
boolean
|
$supportsChunkDownload | |
public
boolean
|
$supportsFileSize |