Zip
- Type
- Class
- Namespace
- Craft
- Inherits
- Craft\Zip
- Since
- 1.0
Class Zip
See also http://craftcms.com
View source (opens new window)
# Public Methods
Method | Description |
---|---|
add() | |
compress() | |
unzip() |
# add()
View source (opens new window)
Arguments
$sourceZip
$pathToAdd
$basePath
$pathPrefix
(null (opens new window))
Returns
Signature
public static boolean add ( $sourceZip, $pathToAdd, $basePath, $pathPrefix = null )
# compress()
View source (opens new window)
Arguments
$source
$destZip
Returns
boolean (opens new window) – 'true' if the zip was successfully created, 'false' if not.
Signature
public static boolean compress ( $source, $destZip )
# unzip()
Signature
public static boolean unzip ( $srcZip, $destFolder )