/** * Set the Zip Class to use (PCLZip or ZipArchive) * * @param string $zipClass * PHPExcel_Settings::ZipArchive * @return boolean or failure */ public static function setZipClass($zipClass) { if (($zipClass == self::PCLZIP) || ($zipClass == self::ZIPARCHIVE)) { self::$_zipClass = $zipClass; return True; } return False; } // function setZipClass()
/** * 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; }
/** * 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; }