function ArchiverZip::extract

Overrides ArchiverInterface::extract

File

modules/system/system.archiver.inc, line 107

Class

ArchiverZip
Archiver for .zip files.

Code

public function extract($path, array $files = array()) {
    if ($files) {
        $this->zip
            ->extractTo($path, $files);
    }
    else {
        $this->zip
            ->extractTo($path);
    }
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.