TwistPHP Documentation

Archive

File path: dist/twist/Core/Helpers/Archive.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

Type: Class

Archive — Create ZIP archives of compressed files, easily zip up whole directories and single files. Default handler is PHP's native ZipArchive, the option to use the third party class PclZip can be installed as a package.

Example Usage

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

//Call the function load with the example vars
Twist::Archive() -> load($dirZipArchive);

Method List

Method Access Returns
__constructconstructvoid
createpublicvoid
loadpublicvoid
setCommentpublicvoid
addFilepublicvoid
addEmptyDirectorypublicvoid
deleteFilepublicvoid
addItemprotectedvoid
savepublicvoid
servepublicvoid
extractpublicvoid