Detailed Description
Definition at line 38 of file ZipArchive.php.
Member Function Documentation
PHPExcel_Shared_ZipArchive::addFromString |
( |
|
$localname, |
|
|
|
$contents |
|
) |
| |
Definition at line 71 of file ZipArchive.php.
References $handle, $res, PCLZIP_OPT_ADD_PATH, and PCLZIP_OPT_REMOVE_PATH.
{
$filenameParts = pathinfo($localname);
$handle = fopen($this->_tempDir.
'/'.$filenameParts[
"basename"],
"wb");
$res = $this->_zip->add($this->_tempDir.
'/'.$filenameParts[
"basename"],
);
throw new Exception(
"Error zipping files : " . $this->_zip->errorInfo(
true));
}
unlink($this->_tempDir.'/'.$filenameParts["basename"]);
}
PHPExcel_Shared_ZipArchive::close |
( |
| ) |
|
PHPExcel_Shared_ZipArchive::open |
( |
|
$fileName | ) |
|
Field Documentation
PHPExcel_Shared_ZipArchive::$_tempDir |
|
private |
PHPExcel_Shared_ZipArchive::$_zip |
|
private |
The documentation for this class was generated from the following file: