\PHPExcel_Shared_ZipArchive

PHPExcel_Shared_ZipArchive

Summary

Methods
Properties
Constants
open()
close()
addFromString()
locateName()
getFromName()
No public properties found
OVERWRITE
CREATE
No protected methods found
No protected properties found
N/A
No private methods found
$_tempDir
$_zip
N/A

Constants

OVERWRITE

OVERWRITE = 'OVERWRITE'

constants

CREATE

CREATE = 'CREATE'

Properties

$_tempDir

$_tempDir : string

Temporary storage directory

Type

string

$_zip

$_zip : string

Zip Archive Stream Handle

Type

string

Methods

open()

open(string  $fileName) : boolean

Open a new zip archive

Parameters

string $fileName

Filename for the zip archive

Returns

boolean

close()

close() 

Close this zip archive

addFromString()

addFromString(string  $localname, string  $contents) 

Add a new file to the zip archive from a string of raw data.

Parameters

string $localname

Directory/Name of the file to add to the zip archive

string $contents

String of data to add to the zip archive

locateName()

locateName(string  $fileName) : boolean

Find if given fileName exist in archive (Emulate ZipArchive locateName())

Parameters

string $fileName

Filename for the file in zip archive

Returns

boolean

getFromName()

getFromName(string  $fileName) : string

Extract file from archive by given fileName (Emulate ZipArchive getFromName())

Parameters

string $fileName

Filename for the file in zip archive

Returns

string —

$contents File string contents