IZip

Type
Interface
Namespace
Craft
Implemented by
Craft\PclZip, Craft\ZipArchive
Since
1.0

Interface IZip

See also http://craftcms.com

View source (opens new window)

# Public Methods

Method Description
add() Will add either a file or a folder to an existing zip file. If it is a folder, it will add the contents recursively.
unzip()
zip()

# add()

Will add either a file or a folder to an existing zip file. If it is a folder, it will add the contents recursively.

View source (opens new window)

Arguments

Returns

boolean (opens new window)

Signature

public abstract boolean add ( $sourceZip, $filePath, $basePath, $pathPrefix = null )

# unzip()

View source (opens new window)

Arguments

  • $sourceZip
  • $destFolder

Returns

mixed

Signature

public abstract mixed unzip ( $sourceZip, $destFolder )

# zip()

View source (opens new window)

Arguments

  • $sourceFolder
  • $destZip

Returns

mixed

Signature

public abstract mixed zip ( $sourceFolder, $destZip )