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

Returns

boolean (opens new window)

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()

View source (opens new window)

Arguments

  • $srcZip
  • $destFolder

Returns

boolean (opens new window)

Signature

public static boolean unzip ( $srcZip, $destFolder )