method zip documentation in bbn\Appui\Medias

function($medias, $dest) { if (is_string($medias)) { $medias = [$medias]; } if (is_array($medias) && $this->fs->createPath(X::dirname($dest)) && ($zip = new \ZipArchive()) && (( is_file($dest) && ($zip->open($dest, \ZipArchive::OVERWRITE) === true)) || ($zip->open($dest, \ZipArchive::CREATE) === true) ) ) { foreach ($medias as $media){ if ($file = $this->getMedia($media)) { $zip->addFile($file, X::basename($file)); } } return $zip->close(); } return false; }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.