Property | Type | Description | |
---|---|---|---|
$package |
Method | Description | |
---|---|---|
download ( |
Initializes and downloads the remote corpus | |
getDownloadFullPath ( ) : string | Has the full path to where the download should go | |
getInstallDir ( ) : string | The path where the software should be installed | |
getPackage ( ) : |
||
initialize ( ) | Initialize the directories required for the download | |
verifyChecksum ( ) : boolean | Verify the packages checksum against the downloaded file |
Method | Description | |
---|---|---|
__construct ( |
Installs the package | |
downloadRemoteFile ( ) | ||
extractZip ( $srcPath, $extractToDir ) | Use PHP's ZipArchive to extract out the data | |
isZip ( string $path ) : boolean | ||
recursiveCopy ( string $src, string $dst ) | Recursive copy the directory | |
unpackPackage ( ) | de-compress the downloaded corpus into the install directory, or copy the files into the install directory |
protected __construct ( |
||
$package |
public static download ( |
||
$package | ||
return |
protected extractZip ( $srcPath, $extractToDir ) |
public getDownloadFullPath ( ) : string | ||
return | string |
public getInstallDir ( ) : string | ||
return | string |
public getPackage ( ) : |
||
return |
public initialize ( ) |
protected recursiveCopy ( string $src, string $dst ) | ||
$src | string | |
$dst | string |
protected unpackPackage ( ) |
public verifyChecksum ( ) : boolean | ||
return | boolean |