OLE package base class.
author | Xavier Noguer |
---|---|
author | Christian Schmidt |
category | PHPExcel |
package | PHPExcel_Shared_OLE |
Asc2Ucs(string $ascii) : string
access | public |
---|---|
static |
string
The ASCII string to transform
string
The string in UnicodeLocalDate2OLE(integer $date) : string
access | public |
---|---|
static |
integer
A timestamp
string
The string for the OLE containerOLE2LocalDate(integer $string) : string
access | public |
---|---|
static |
integer
A binary string with the encoded date
string
The timestamp corresponding to the string_getBlockOffset(int $blockId)
access | public |
---|
int
block id
_ppsTreeComplete(integer $index) : boolean
access | public |
---|
integer
The index of the PPS from which we are checking
boolean
Whether the PPS tree for the given PPS is complete_readPpsWks(integer $blockId) : mixed
access | public |
---|
integer
the block id of the first block
mixed
true on success, PEAR_Error on failuregetData(integer $index, integer $position, integer $length) : string
access | public |
---|---|
see | \OLE_PPS_File::getStream() |
integer
The index for the PPS
integer
The position from which to start reading (relative to the PPS)
integer
The amount of bytes to read (at most)
string
The binary string containing the data requestedgetDataLength(integer $index) : integer
access | public |
---|
integer
The index for the PPS
integer
The amount of bytes in data the PPS hasgetStream(int | \PPS $blockIdOrPps) : resource
External callers should use PHPExcel_Shared_OLE_PPS_File::getStream().
int
\PPS
block id or PPS
resource
read-only streamisFile(integer $index) : bool
If there is no PPS for the index given, it will return false.
access | public |
---|
integer
The index for the PPS
bool
true if it's a File PPS, false otherwiseisRoot(integer $index) : bool
If there is no PPS for the index given, it will return false.
access | public |
---|
integer
The index for the PPS.
bool
true if it's a Root PPS, false otherwiseppsTotal() : integer
access | public |
---|
integer
The total number of PPS's found in the OLE containerread(string $file) : mixed
acces | public |
---|
string
mixed
true on success, PEAR_Error on failure_readInt1(resource $fh) : int
access | public |
---|
resource
file handle
int
_readInt2(resource $fh) : int
access | public |
---|
resource
file handle
int
_readInt4(resource $fh) : int
access | public |
---|
resource
file handle
int
$_file_handle : resource
$_list : array
$bbat : array
$bigBlockSize : int
This is usually 512.
$root : \OLE_PPS_Root
$sbat : array
$smallBlockSize : int
This is usually 64.
OLE_DATA_SIZE_SMALL
OLE_LONG_INT_SIZE
OLE_PPS_SIZE
OLE_PPS_TYPE_DIR
OLE_PPS_TYPE_FILE
OLE_PPS_TYPE_ROOT