public function ArchiverInterface::extract

Extracts multiple files in the archive to the specified path.

Parameters

string $path: A full system path of the directory to which to extract files.

array $files: Optionally specify a list of files to be extracted. Files are relative to the root of the archive. If not specified, all files in the archive will be extracted.

Return value

Drupal\Component\Archiver\ArchiverInterface The called object.

2 methods override ArchiverInterface::extract()
Tar::extract in drupal/core/lib/Drupal/Component/Archiver/Tar.php
Implements Drupal\Component\Archiver\ArchiveInterface::extract().
Zip::extract in drupal/core/lib/Drupal/Component/Archiver/Zip.php
Implements Drupal\Component\Archiver\ArchiveInterface::extract().

File

drupal/core/lib/Drupal/Component/Archiver/ArchiverInterface.php, line 51
Definition of Drupal\Component\Archiver\ArchiverInterface.

Class

ArchiverInterface
Defines the common interface for all Archiver classes.

Namespace

Drupal\Component\Archiver

Code

public function extract($path, array $files = array());