TwistPHP Documentation

addItem

File path: dist/twist/Core/Utilities/Archive.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

addItemDecides how to deal with the path being entered into the zip

Parameters

Name Type Description
$dirLocalPathstringn/a
[$strCurrentPath = '']stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$dirLocalPath '/home/user/public_html/twist';
$strCurrentPath '';

//Call the function addItem with the example vars
Twist::Archive() -> addItem($dirLocalPath$strCurrentPath);