class Zip
Defines a archiver implementation for .zip files.
@link http://php.net/zip
Hierarchy
- class \Drupal\Core\Archiver\Zip implements ArchiverInterface
File
- core/lib/Drupal/Core/Archiver/Zip.php, line 10
Namespace
Drupal\Core\ArchiverMembers
Name | Modifiers | Type | Description |
---|---|---|---|
Zip::$zip | protected | property | The underlying ZipArchive instance that does the heavy lifting. |
Zip::add | public | function | Adds the specified file or directory to the archive. Overrides ArchiverInterface::add |
Zip::extract | public | function | Extracts multiple files in the archive to the specified path. Overrides ArchiverInterface::extract |
Zip::getArchive | public | function | Retrieves the zip engine itself. |
Zip::listContents | public | function | Lists all files in the archive. Overrides ArchiverInterface::listContents |
Zip::remove | public | function | Removes the specified file from the archive. Overrides ArchiverInterface::remove |
Zip::__construct | public | function | Constructs a Zip object. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Archiver!Zip.php/class/Zip/8.1.x