\PhpOffice\Common\Adapter\ZipPclZipAdapter

Summary

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

Properties

$oPclZip

$oPclZip : \PclZip

Type

\PclZip

$tmpDir

$tmpDir : 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