\PHPExcel_Shared_ZipStreamWrapper

PHPExcel_Shared_ZipStreamWrapper

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

Summary

Methods
Properties
Constants
register()
stream_open()
statName()
url_stat()
stream_stat()
stream_read()
stream_tell()
stream_eof()
stream_seek()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$archive
$fileNameInArchive
$position
$data
N/A

Properties

$archive

$archive : \ZipArchive

Internal ZipAcrhive

Type

\ZipArchive —

$fileNameInArchive

$fileNameInArchive : string

Filename in ZipAcrhive

Type

string —

$position

$position : int

Position in file

Type

int —

$data

$data : mixed

Data

Type

mixed —

Methods

register()

register() : mixed

Register wrapper

Returns

mixed —

stream_open()

stream_open(string  $path, string  $mode, int  $options, mixed  $opened_path) : bool

Implements support for fopen().

Parameters

string $path

resource name including scheme, e.g.

string $mode

only "r" is supported

int $options

mask of STREAM_REPORT_ERRORS and STREAM_USE_PATH

mixed $opened_path

Returns

bool —

true on success

statName()

statName() : bool

Implements support for fstat().

Returns

bool —

url_stat()

url_stat() : bool

Implements support for fstat().

Returns

bool —

stream_stat()

stream_stat() : bool

Implements support for fstat().

Returns

bool —

stream_read()

stream_read(int  $count) : string

Implements support for fread(), fgets() etc.

Parameters

int $count

maximum number of bytes to read

Returns

string —

stream_tell()

stream_tell() : int

Returns the position of the file pointer, i.e. its offset into the file stream. Implements support for ftell().

Returns

int —

stream_eof()

stream_eof() : bool

EOF stream

Returns

bool —

stream_seek()

stream_seek(int  $offset, int  $whence) : bool

Seek stream

Parameters

int $offset

byte offset

int $whence

SEEK_SET, SEEK_CUR or SEEK_END

Returns

bool —