메소드 |
설명 |
|
downloadAndReturn ( string $url, integer $from = null, integer $to = null, array $params = [] ) : string |
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. |
|
getFileSize ( string $url ) : integer |
Get the size of a remote file in bytes |
|
getName ( ) : string |
Returns the name of this download adapter in use |
|
getPriority ( ) : boolean |
Get the priority of this adapter. If multiple download adapters are
supported on a site, the one with the highest priority will be
used. |
|
isSupported ( ) : boolean |
Is this download class supported in the current server environment? |
|
supportsChunkDownload ( ) : boolean |
Does this download adapter support downloading files in chunks? |
|
supportsFileSize ( ) : boolean |
Does this download adapter support reading the size of a remote file? |
|