Lines Matching full:zip
4 /** The temporary file name of the Zip archive. */
7 /** Holds the Zip archive builder. */
8 private $zip; variable in ArchiveHelperZip
10 /** Name of the file currently being appended into the ZIP archive. */
13 /** Content of the file currently being appended into the ZIP archive. */
20 return "application/zip";
24 * Initializes the temporary ZIP archive.
27 $this->temporaryZipFilename = tempnam(sys_get_temp_dir(), "zip");
28 $this->zip = new ZipArchive();
29 $this->zip->open($this->temporaryZipFilename, ZipArchive::OVERWRITE);
33 * Starts a new file in the ZIP archive.
51 $this->zip->addFromString($this->currentFilename, $this->currentContent);
59 $this->zip->addFromString($filename, $content);
63 * Closes the ZIP archive and returns its whole content as a string.
64 * @return Content of the ZIP archive.
67 $this->zip->close();