Class Downloader
Downloads an external resource to disk, echoing the progress
Methods summary
public | |
public | # progressFunction(resource$resource,integer$downloadSize,integer$downloaded,integer$uploadSize,integer$uploaded) The progress function |
public boolean |
Magic methods summary
Properties summary
public static | $this | # Static reference to the last instance of the class |
protected | $curl | # Curl handler |
protected string | $dest | # Download destination |
protected integer | $lastReportTime | # Timestamp when we last reported the status |
protected string | $lastReportStatus | # The last reported status |
protected resource | $fp | # Output |
protected integer | $reportCount | # Number of times the status has been reported |