class Zip

Same name in this branch

Defines a archiver implementation for .zip files.

@link http://php.net/zip

Plugin annotation


@Plugin(
  id = "Zip",
  title = @Translation("Zip"),
  description = @Translation("Handles zip files."),
  extensions = {"zip"}
)

Hierarchy

Expanded class hierarchy of Zip

File

drupal/core/modules/system/lib/Drupal/system/Plugin/Archiver/Zip.php, line 26
Contains \Drupal\system\Plugin\Core\Archiver\Zip.

Namespace

Drupal\system\Plugin\Archiver
View source
class Zip extends BaseZip {

}

Members

Namesort descending Modifiers Type Description Overrides
Zip::$zip protected property The underlying ZipArchive instance that does the heavy lifting.
Zip::add public function Implements Drupal\Component\Archiver\ArchiveInterface::add(). Overrides ArchiverInterface::add
Zip::extract public function Implements Drupal\Component\Archiver\ArchiveInterface::extract(). Overrides ArchiverInterface::extract
Zip::getArchive public function Retrieves the zip engine itself.
Zip::listContents public function Implements Drupal\Component\Archiver\ArchiveInterface::listContents(). Overrides ArchiverInterface::listContents
Zip::remove public function Implements Drupal\Component\Archiver\ArchiveInterface::remove(). Overrides ArchiverInterface::remove
Zip::__construct public function Constructs a Zip object.