| $#! | |
| __construct, wgetHandler | |
| __destruct, wgetHandler | |
| _parseOutput, wgetHandler | |
| _saveCookieFile, wgetHandler | |
| A | |
| arrCookies, wgetHandler | |
| arrErrorDescriptions, wgetHandler | |
| arrIndicatorChars, wgetHandler | |
| arrOutputLines, wgetHandler | |
| D | |
| doDownload, wgetHandler | |
| F | |
| Functions, wgetHandler | |
| I | |
| intReturnValue, wgetHandler | |
| L | |
| License | |
| O | |
| objDownloadResult, wgetHandler | |
| S | |
| strDownloadPath, wgetHandler | |
| strParams, wgetHandler | |
| strPathTowget, wgetHandler | |
| strUserAgent, wgetHandler | |
| V | |
| Variables, wgetHandler | |
| W | |
| 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 )
Cookies to send with download requests.
public $arrCookies
Descriptions of wget return values, where key == return and vice versa.
public $arrErrorDescriptions
Each element contains one char, used in order of appearance in array for intLiveMode=3 param in doDownload.
public $arrIndicatorChars
Will be filled with stdout (and stderr, since we use output redirection) from wget.
private $arrOutputLines
Downloads a given url
public function doDownload( $strURL, $strTargetFile = "", $strReferer = "", $intLiveMode = 0, $bDontDeleteTargetFile = false )
Will get wgets return value when doDownload finished.
public $intReturnValue
Will get the download results
public $objDownloadResult
Path (full or relative) to target directory, without trailing slash, for downloaded files.
public $strDownloadPath
Commandline params/options to use when launching wget.
public $strParams
Path to wget binary to use.
public $strPathTowget
HTTP UserAgent to send.
public $strUserAgent