$#! | |
__construct, wgetHandler | |
__destruct, wgetHandler | |
_parseOutput, wgetHandler | |
_saveCookieFile, wgetHandler | |
D | |
doDownload, wgetHandler |
Initialize objDownloadResult
public function __construct()
Just delete the cookies.txt file, it it exists.
public function __destruct()
Takes an array with output lines of wget and get average download speed, time needed and file size from it.
private function _parseOutput()
Save cookies from arrCookies to cookies.txt
private function _saveCookieFile( $strDomainCookieScope )
Downloads a given url
public function doDownload( $strURL, $strTargetFile = "", $strReferer = "", $intLiveMode = 0, $bDontDeleteTargetFile = false )