Zip

Type
Class
Namespace
Craft
Inherits
Craft\Zip
Since
1.0

Class Zip

See also http://craftcms.com

View source

Public Methods

MethodDescription
add()
compress()
unzip()

add()

View source

Arguments

  • $sourceZip
  • $pathToAdd
  • $basePath
  • $pathPrefix (null)

Returns

boolean

Signature

public static boolean add ( $sourceZip, $pathToAdd, $basePath, $pathPrefix = null )

compress()

View source

Arguments

  • $source
  • $destZip

Returns

boolean – 'true' if the zip was successfully created, 'false' if not.

Signature

public static boolean compress ( $source, $destZip )

unzip()

View source

Arguments

  • $srcZip
  • $destFolder

Returns

boolean

Signature

public static boolean unzip ( $srcZip, $destFolder )