| apidoc |
| [ class tree: apidoc ] [ index: apidoc ] [ all elements ] |
|
Packages: HTTP_Download Classes: |
[ Top ] $HTTP = null[line 214] HTTP_HeaderError constants
[ Top ] $lastModified = ''[line 193] Last modified (GMT)Error constants
[ Top ] $size = 0[line 185] Size of downloadError constants
[ Top ] Method DetailHTTP_Download (Constructor) [line 254]
Constructor Error constants Set supplied parameters.
Parameters:
[ Top ]
compareAsterisk [line 877]
Compare against an asterisk or check for equality Error constants
Parameters:
[ Top ]
generateETag [line 703]getChunks [line 791]getRanges [line 828]guessContentType [line 516]
Guess content type of file Error constants This only works if PHP is installed with ext/magic.mime AND php.ini is setup correct! Otherwise it will result in a FATAL ERROR. So be WARNED! Returns PEAR_Error (HTTP_DOWNLOAD_E_NO_EXT_MMAGIC) if ext/magic.mime is not installed, or not properly configured.
[ Top ]
isCached [line 840]isRangeRequest [line 814]isValidRange [line 856]send [line 543]
Send Error constants Returns PEAR_Error if:
[ Top ]
sendArchive [line 649]
Send a bunch of files or directories as an archive Error constants Example:
Parameters:
[ Top ]
sendChunk [line 751]
Send chunk of data Error constants
Parameters:
[ Top ]
sendChunks [line 722]
Send multiple chunks Error constants
Parameters:
[ Top ]
sendHeaders [line 893]setCache [line 423]
Whether to allow caching Error constants If set to true (default) we'll send some headers that are commonly used for caching purposes like ETag, Cache-Control and Last-Modified. If caching is disabled, we'll send the download no matter if it would actually be cached at the clients side.
Parameters:
[ Top ]
setContentDisposition [line 466]
Set Content-Disposition header Error constants
Parameters:
[ Top ]
setContentType [line 491]
Set content type of file for download Error constants Default content type of the download will be 'application/x-octetstream'. Returns PEAR_Error (HTTP_DOWNLOAD_E_INVALID_CONTENT_TYPE) if $content_type doesn't seem to be valid.
Parameters:
[ Top ]
setData [line 350]
Set data for download Error constants Set $data to null if you want to unset this.
Parameters:
[ Top ]
setFile [line 323]
Set path to file for download Error constants The Last-Modified header will be set to files filemtime(), actually. Returns PEAR_Error (HTTP_DOWNLOAD_E_INVALID_FILE) if file doesn't exist. Sends HTTP 404 Status if $send_404 is set to true.
Parameters:
[ Top ]
setGzip [line 398]
Whether to gzip the download Error constants Returns a PEAR_Error (HTTP_DOWNLOAD_E_NO_EXT_ZLIB) if ext/zlib is not available/loadable.
Parameters:
[ Top ]
setLastModified [line 440]
Set "Last-Modified" Error constants This is usually determined by filemtime($file) in HTTP_Download::setFile() If you set raw data for download with HTTP_Download::setData() and you want do send an appropiate "Last-Modified" header, you should call this method.
Parameters:
[ Top ]
setParams [line 282]
Set parameters Error constants Set supplied parameters through its accessor methods.
Parameters:
[ Top ]
setResource [line 367]
Set resource for download Error constants The resource handle supplied will be closed after sending the download. Returns a PEAR_Error (HTTP_DOWNLOAD_E_INVALID_RESOURCE) if $handle is no valid resource. Set $handle to null if you want to unset this.
Parameters:
[ Top ]
staticSend [line 608]
Static send Error constants
Parameters:
[ Top ]
Documentation generated on Mon, 11 Mar 2019 10:17:21 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004. |