\PhpOffice\Common\Adapter\ZipZipArchiveAdapter

Summary

Methods
Properties
Constants
open()
close()
addFromString()
No public properties found
No constants found
No protected methods found
$oZipArchive
$filename
N/A
No private methods found
No private properties found
N/A

Properties

$oZipArchive

$oZipArchive : \ZipArchive

Type

\ZipArchive

$filename

$filename : string

Type

string

Methods

open()

open(string  $filename) : $this

Open a ZIP file archive

Parameters

string $filename

Returns

$this

close()

close() : $this

Close the active archive (opened or newly created)

Returns

$this

addFromString()

addFromString(string  $localname, string  $contents) : $this

Add a file to a ZIP archive using its contents

Parameters

string $localname

The name of the entry to create.

string $contents

The contents to use to create the entry. It is used in a binary safe mode.

Returns

$this