Class Downloader
Downloads an external resource to disk, echoing the progress
Methods summary
public
|
|
public
|
#
progressFunction( resource $resource, integer $download_size, integer $downloaded, integer $upload_size, integer $uploaded )
The progress function |
public
boolean
|
Magic methods summary
Properties summary
protected
|
$curl |
#
cURL handler |
protected
string
|
$dest |
#
Download destination |
protected
integer
|
$last_report_time |
#
Timestamp when we last reported the status |
protected
string
|
$last_report_status |
#
The last reported status |
protected
resource
|
$fp |
#
Output |
protected
integer
|
$report_count |
#
Number of times the status has been reported |