TwistPHP Documentation

addFile

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

addFileAdd a file to the archive resource

Parameters

Name Type Description
$strLocalFilestringn/a
$strZipPathstringn/a

Return Values

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

Example

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

//Call the function addFile with the example vars
$resNative = new \Twist\Core\Models\Archive\Native();
$resNative -> addFile($strLocalFile$strZipPath);