function ArchiverZip::add

Overrides ArchiverInterface::add

File

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

Class

ArchiverZip
Archiver for .zip files.

Code

public function add($file_path) {
    $this->zip
        ->addFile($file_path);
    return $this;
}

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