class Zip
Same name in this branch
- 10 core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip
Same name and namespace in other branches
- 9 core/modules/system/src/Plugin/Archiver/Zip.php \Drupal\system\Plugin\Archiver\Zip
- 9 core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip
- 8.9.x core/modules/system/src/Plugin/Archiver/Zip.php \Drupal\system\Plugin\Archiver\Zip
- 8.9.x core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip
- 11.x core/modules/system/src/Plugin/Archiver/Zip.php \Drupal\system\Plugin\Archiver\Zip
- 11.x core/lib/Drupal/Core/Archiver/Zip.php \Drupal\Core\Archiver\Zip
Defines an archiver implementation for .zip files.
@link http://php.net/zip
Attributes
#[Archiver(id: 'Zip', title: new TranslatableMarkup('Zip'), description: new TranslatableMarkup('Handles zip files.'), extensions: [
'zip',
])]
Hierarchy
- class \Drupal\Core\Archiver\Zip extends \Drupal\Core\Archiver\ArchiverInterface
- class \Drupal\system\Plugin\Archiver\Zip implements \Drupal\Core\Archiver\Zip
Expanded class hierarchy of Zip
File
-
core/
modules/ system/ src/ Plugin/ Archiver/ Zip.php, line 14
Namespace
Drupal\system\Plugin\ArchiverView source
class Zip extends BaseZip {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
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. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.