/** * @see \Components\Io_Archive_Zip::close() \Components\Io_Archive_Zip::close() */ public function close() { $properties = $this->properties->toArray(); $properties[$this->getStyle()] = $this->getFields(); $pass = Io::tmpFile(); $pass->setContent(json_encode($properties)); $this->add($pass, self::FILE_PASS); $manifest = Io::tmpFile(); $manifest->setContent(json_encode($this->m_files)); parent::add($manifest, self::FILE_MANIFEST); parent::close(); $manifest->delete(); $pass->delete(); return $this; }