/** * Set the Zip handler Class that PHPExcel should use for Zip file management (PCLZip or ZipArchive) * * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive * @return boolean Success or failure */ public static function setZipClass($zipClass) { if ($zipClass === self::PCLZIP || $zipClass === self::ZIPARCHIVE) { self::$zipClass = $zipClass; return true; } return false; }