OLE package base class.
| author | Xavier Noguer |
|---|---|
| author | Christian Schmidt |
| category | PHPExcel |
| package | PHPExcel_Shared_OLE |
Asc2Ucs(string $ascii) : string
| access | public |
|---|---|
| static |
stringThe ASCII string to transform
stringThe string in UnicodeLocalDate2OLE(integer $date) : string
| access | public |
|---|---|
| static |
integerA timestamp
stringThe string for the OLE containerOLE2LocalDate(integer $string) : string
| access | public |
|---|---|
| static |
integerA binary string with the encoded date
stringThe timestamp corresponding to the string_getBlockOffset(int $blockId)
| access | public |
|---|
intblock id
_ppsTreeComplete(integer $index) : boolean
| access | public |
|---|
integerThe index of the PPS from which we are checking
booleanWhether the PPS tree for the given PPS is complete_readPpsWks(integer $blockId) : mixed
| access | public |
|---|
integerthe block id of the first block
mixedtrue on success, PEAR_Error on failuregetData(integer $index, integer $position, integer $length) : string
| access | public |
|---|---|
| see | \OLE_PPS_File::getStream() |
integerThe index for the PPS
integerThe position from which to start reading (relative to the PPS)
integerThe amount of bytes to read (at most)
stringThe binary string containing the data requestedgetDataLength(integer $index) : integer
| access | public |
|---|
integerThe index for the PPS
integerThe amount of bytes in data the PPS hasgetStream(int | \PPS $blockIdOrPps) : resource
External callers should use PHPExcel_Shared_OLE_PPS_File::getStream().
int\PPSblock id or PPS
resourceread-only streamisFile(integer $index) : bool
If there is no PPS for the index given, it will return false.
| access | public |
|---|
integerThe index for the PPS
booltrue 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 |
|---|
integerThe index for the PPS.
booltrue if it's a Root PPS, false otherwiseppsTotal() : integer
| access | public |
|---|
integerThe total number of PPS's found in the OLE containerread(string $file) : mixed
| acces | public |
|---|
string
mixedtrue on success, PEAR_Error on failure_readInt1(resource $fh) : int
| access | public |
|---|
resourcefile handle
int_readInt2(resource $fh) : int
| access | public |
|---|
resourcefile handle
int_readInt4(resource $fh) : int
| access | public |
|---|
resourcefile 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