TwistPHP Documentation

Archive

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

Type: Utility

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