PHPZip\Zip\File\Zip::onBeginAddFile PHP Method

onBeginAddFile() public method

Called by superclass when specialised action is needed at the start of adding a file to the archive.
Author: A. Grandt ([email protected])
Author: Greg Kappatos
public onBeginAddFile ( array $params )
$params array Array that contains gzLength.
    public function onBeginAddFile(array $params) {
        if (!is_resource($this->_zipFile) && ($this->offset + $params['gzLength']) > self::MEMORY_THRESHOLD) {
            $this->zipFlush();
        }
    }