\PHPExcel_Shared_OLE_ChainedBlockStream

PHPExcel_Shared_OLE_ChainedBlockStream

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
stream_open()
stream_close()
stream_read()
stream_eof()
stream_tell()
stream_seek()
stream_stat()
$ole
$params
$data
$pos
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$ole

$ole : \OLE

The OLE container of the file that is being read.

Type

\OLE

$params

$params : array

Parameters specified by fopen().

Type

array

$data

$data : string

The binary data of the file.

Type

string

$pos

$pos : integer

The file pointer.

Type

integer — byte offset

Methods

stream_open()

stream_open(string  $path, string  $mode, integer  $options,   $openedPath) : boolean

Implements support for fopen().

For creating streams using this wrapper, use OLE_PPS_File::getStream().

Parameters

string $path

resource name including scheme, e.g. ole-chainedblockstream://oleInstanceId=1

string $mode

only "r" is supported

integer $options

mask of STREAM_REPORT_ERRORS and STREAM_USE_PATH

$openedPath

Returns

boolean —

true on success

stream_close()

stream_close() 

Implements support for fclose().

stream_read()

stream_read(integer  $count) : string

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

Parameters

integer $count

maximum number of bytes to read

Returns

string

stream_eof()

stream_eof() : boolean

Implements support for feof().

Returns

boolean —

TRUE if the file pointer is at EOF; otherwise FALSE

stream_tell()

stream_tell() : integer

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

Returns

integer

stream_seek()

stream_seek(integer  $offset, integer  $whence) : boolean

Implements support for fseek().

Parameters

integer $offset

byte offset

integer $whence

SEEK_SET, SEEK_CUR or SEEK_END

Returns

boolean

stream_stat()

stream_stat() : array

Implements support for fstat(). Currently the only supported field is "size".

Returns

array