class PHPExcel_Shared_ZipArchive

PHPExcelSharedZipArchive

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Constants

OVERWRITE

constants

CREATE

Methods

boolean
open(string $fileName)

Open a new zip archive

close()

Close this zip archive

addFromString(string $localname, string $contents)

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

boolean
locateName(string $fileName)

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

string
getFromName(string $fileName)

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

getFromIndex($index)

No description

Details

at line 71
boolean open(string $fileName)

Open a new zip archive

Parameters

string $fileName Filename for the zip archive

Return Value

boolean

at line 84
close()

Close this zip archive

at line 95
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

at line 117
boolean locateName(string $fileName)

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

Parameters

string $fileName Filename for the file in zip archive

Return Value

boolean

at line 140
string getFromName(string $fileName)

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

Parameters

string $fileName Filename for the file in zip archive

Return Value

string $contents File string contents

at line 163
getFromIndex($index)

Parameters

$index