TwistPHP Documentation

download

File path: dist/twist/Core/Models/Package.model.php
Namespace: Twist\Core\Models
Extends:

downloadDownload and extract a package into the packages folder

Parameters

Name Type Description
$strPackageKeystringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strPackageKey 'foo';

//Call the function download with the example vars
$resPackage = new \Twist\Core\Models\Package();
$resPackage -> download($strPackageKey);