PHPExcel_Reader
[ class tree: PHPExcel_Reader ] [ index: PHPExcel_Reader ] [ all elements ]

Class: PHPExcel_Reader_Excel5

Source Location: /PHPExcel/Reader/Excel5.php

Class Overview


PHPExcel_Reader_Excel5


Author(s):

Copyright:

  • Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)

Implements interfaces:

Variables

Constants

Methods



Class Details

[line 79]
PHPExcel_Reader_Excel5

PHPExcel_Reader_Excel5 This class uses http://sourceforge.net/projects/phpexcelreader/parseXL




Tags:

copyright:  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)


[ Top ]


Class Variables

$_boundsheets = array()

[line 143]



Tags:

access:  private

Type:   mixed


[ Top ]

$_codepage =

[line 181]



Tags:

access:  private

Type:   mixed


[ Top ]

$_coloffset =  1

[line 185]



Tags:

access:  private

Type:   mixed


[ Top ]

$_columnsFormat = array()

[line 183]



Tags:

access:  private

Type:   mixed


[ Top ]

$_data =

[line 177]



Tags:

access:  private

Type:   mixed


[ Top ]

$_dateFormats = array (
      // dvc: fixed known date formats
      0xe => 'd/m/Y',
      0xf => 'd-M-y',
      0x10 => 'd-M',
      0x11 => 'M-y',
      0x12 => 'h:i A',
      0x13 => 'h:i:s A',
      0x14 => 'H:i',
      0x15 => 'H:i:s',
      0x16 => 'd/m/Y H:i',
      0x2d => 'i:s',
      0x2e => 'H:i:s',
      0x2f => 'i:s'
   )

[line 189]



Tags:

access:  private

Type:   mixed


[ Top ]

$_defaultEncoding =

[line 180]



Tags:

access:  private

Type:   mixed


[ Top ]

$_defaultFormat =  self::XLS_DEF_NUM_FORMAT

[line 182]



Tags:

access:  private

Type:   mixed


[ Top ]

$_extshref = array()

[line 187]



Tags:

access:  private

Type:   mixed


[ Top ]

$_font = array()

[line 169]

Shared fonts

Shared fonts




Tags:

access:  private

Type:   array


[ Top ]

$_formatRecords = array()

[line 147]



Tags:

access:  private

Type:   mixed


[ Top ]

$_namedcells = array()

[line 176]



Tags:

access:  private

Type:   mixed


[ Top ]

$_numberFormat = array()

[line 148]



Tags:

access:  private

Type:   mixed


[ Top ]

$_numberFormats = array(
      0x1 => '%1.0f',
      0x2 => '%1.2f',
      0x3 => '%1.0f',
      0x4 => '%1.2f',
      0x5 => '%1.0f',
      0x6 => '$%1.0f',
      0x7 => '$%1.2f',
      0x8 => '$%1.2f',
      0x25 => '%1.0f',
      0x26 => '%1.0f',
      0x27 => '%1.2f',
      0x28 => '%1.2f',
      0x29 => '%1.0f',
      0x2a => '$%1.0f',
      0x2b => '%1.2f',
      0x2c => '$%1.2f'
   )

[line 212]



Tags:

access:  private

Type:   mixed


[ Top ]

$_ole =

[line 179]



Tags:

access:  private

Type:   mixed


[ Top ]

$_percentFormats = array(
      0x9 => '%1.0f%%',
      0xa => '%1.2f%%'
   )

[line 206]



Tags:

access:  private

Type:   mixed


[ Top ]

$_pos =

[line 178]



Tags:

access:  private

Type:   mixed


[ Top ]

$_readDataOnly =  false

[line 141]

Read data only?

Read data only?




Tags:

access:  private

Type:   boolean


[ Top ]

$_ref = array()

[line 172]



Tags:

access:  private

Type:   mixed


[ Top ]

$_rowoffset =  1

[line 184]



Tags:

access:  private

Type:   mixed


[ Top ]

$_sheets = array()

[line 174]



Tags:

access:  private

Type:   mixed


[ Top ]

$_sst = array()

[line 155]

Shared strings

Shared strings




Tags:

access:  private

Type:   array


[ Top ]

$_xf = array()

[line 162]

Shared styles

Shared styles




Tags:

access:  private

Type:   array


[ Top ]



Class Methods


method getReadDataOnly [line 236]

boolean getReadDataOnly( )

Read data only?

Read data only?




Tags:

access:  public


[ Top ]

method load [line 255]

void load( string $pFilename)

Loads PHPExcel from file

Loads PHPExcel from file




Tags:

throws:  Exception
access:  public



Implementation of:
PHPExcel_Reader_IReader::load()
Loads PHPExcel from file

Parameters:

string   $pFilename  

[ Top ]

method setReadDataOnly [line 245]

void setReadDataOnly( [boolean $pValue = false])

Set read data only

Set read data only




Tags:

access:  public


Parameters:

boolean   $pValue  

[ Top ]

method _createDate [line 1639]

void _createDate( $numValue)



Tags:

access:  private


Parameters:

   $numValue  

[ Top ]

method _createFormulaStringFromTokens [line 2406]

void _createFormulaStringFromTokens( $tokens)

Convert array of tokens into string

Convert array of tokens into string Experimental function under construction not currently in use returns e.g. 'A3+A5*5'




Tags:

access:  private


Parameters:

   $tokens  

[ Top ]

method _createNumber [line 1663]

void _createNumber( $spos)

Reads 8 bytes and returns IEEE 754 float

Reads 8 bytes and returns IEEE 754 float




Tags:

access:  private


Parameters:

   $spos  

[ Top ]

method _decodeCodepage [line 1837]

void _decodeCodepage( $string)



Tags:

access:  private


Parameters:

   $string  

[ Top ]

method _dump [line 2700]

void _dump( $data)

Dump a byte sequence, only used for debugging

Dump a byte sequence, only used for debugging Experimental function to be removed




Tags:

access:  private


Parameters:

   $data  

[ Top ]

method _encodeUTF16 [line 1785]

void _encodeUTF16( $string, [ $compressed = ''])



Tags:

access:  private


Parameters:

   $string  
   $compressed  

[ Top ]

method _getFillPatternByIndex [line 2054]

void _getFillPatternByIndex( $index)

Get fill pattern from index

Get fill pattern from index OpenOffice documentation: 2.5.12




Tags:

access:  private


Parameters:

   $index  

[ Top ]

method _getFormulaStringFromStructure [line 2356]

void _getFormulaStringFromStructure( $formulaStructure)

Convert formula structure (HEX data) into human readable Excel formula

Convert formula structure (HEX data) into human readable Excel formula Experimental function under construction not currently in use returns e.g. 'A3+A5*5'




Tags:

access:  private


Parameters:

   $formulaStructure  

[ Top ]

method _GetIEEE754 [line 1758]

void _GetIEEE754( $rknum)



Tags:

access:  private


Parameters:

   $rknum  

[ Top ]

method _GetInt2d [line 1816]

void _GetInt2d( $data, $pos)



Tags:

access:  private


Parameters:

   $data  
   $pos  

[ Top ]

method _GetInt4d [line 1821]

void _GetInt4d( $data, $pos)



Tags:

access:  private


Parameters:

   $data  
   $pos  

[ Top ]

method _getNextToken [line 2510]

void _getNextToken( $formulaDataRemain)

Fetch next token from portion of formula data (HEX)

Fetch next token from portion of formula data (HEX) Experimental function under construction not currently in use




Tags:

access:  private


Parameters:

   $formulaDataRemain  

[ Top ]

method _isDate [line 1615]

void _isDate( $spos)



Tags:

access:  private


Parameters:

   $spos  

[ Top ]

method _readBIFF8CellAddress [line 2203]

void _readBIFF8CellAddress( $cellAddressStructure)

Reads a cell address in BIFF8 e.

Reads a cell address in BIFF8 e.g. 'A2' or '$A$2' section 3.3.4




Tags:

access:  private


Parameters:

   $cellAddressStructure  

[ Top ]

method _readBIFF8CellRangeAddress [line 2228]

void _readBIFF8CellRangeAddress( $subData)

Reads a cell range address in BIFF8 e.

Reads a cell range address in BIFF8 e.g. 'A2:B6' or '$A$2:$B$6' section 3.3.4




Tags:

access:  private


Parameters:

   $subData  

[ Top ]

method _readBIFF8NumberFormat [line 1857]

void _readBIFF8NumberFormat( $numberFormatIndex)

Get numberFormat from index

Get numberFormat from index returns false if we couldn't resolve numberFormat




Tags:

access:  private


Parameters:

   $numberFormatIndex  

[ Top ]

method _readBIFF8Style [line 1911]

void _readBIFF8Style( $recordData)

Extracts style from XF record data (not everything is extracted at the moment)

Extracts style from XF record data (not everything is extracted at the moment)




Tags:

access:  private


Parameters:

   $recordData  

[ Top ]

method _readBorderStyle [line 2029]

void _readBorderStyle( $index)

OpenOffice documentation: 2.

OpenOffice documentation: 2.5.11




Tags:

access:  private


Parameters:

   $index  

[ Top ]

method _readColor [line 2263]

void _readColor( $subData)

Extracts color array from BIFF8 built-in color index

Extracts color array from BIFF8 built-in color index




Tags:

access:  private


Parameters:

   $subData  

[ Top ]

method _readFont [line 2084]

void _readFont( $recordData)

Extracts font details from FONT record data (not everything is extracted yet)

Extracts font details from FONT record data (not everything is extracted yet)




Tags:

access:  private


Parameters:

   $recordData  

[ Top ]

method _readNumber [line 1689]

void _readNumber( $subData)

Same as _createNumber, but not hardcoded to read from $this->_data

Same as _createNumber, but not hardcoded to read from $this->_data




Tags:

access:  private


Parameters:

   $subData  

[ Top ]

method _readSheetRangeByRefIndex [line 2330]

void _readSheetRangeByRefIndex( $index)

Get a sheet range like Sheet1:Sheet3 from REF index

Get a sheet range like Sheet1:Sheet3 from REF index Note: If there is only one sheet in the range, one gets e.g Sheet1




Tags:

access:  private


Parameters:

   $index  

[ Top ]

method _readUnicodeStringLong [line 2175]

void _readUnicodeStringLong( $subData)

Extracts an Excel Unicode long string (16-bit string length)

Extracts an Excel Unicode long string (16-bit string length) OpenOffice documentation: 2.5.3 this function is under construction, needs to support rich text, and Asian phonetic settings this function should look like _readUnicodeStringShort and also return the size in bytes




Tags:

access:  private


Parameters:

   $subData  

[ Top ]

method _readUnicodeStringShort [line 2141]

void _readUnicodeStringShort( $subData)

Extracts an Excel Unicode short string (8-bit string length) OpenOffice documentation: 2. this function is under construction, needs to support rich text, and Asian phonetic settings function will automatically find out where the Unicode string ends.

Extracts an Excel Unicode short string (8-bit string length) OpenOffice documentation: 2.5.3 this function is under construction, needs to support rich text, and Asian phonetic settings function will automatically find out where the Unicode string ends.




Tags:

access:  private


Parameters:

   $subData  

[ Top ]

method _setUTFEncoder [line 1604]

void _setUTFEncoder( [ $encoder = 'iconv'])



Tags:

access:  private


Parameters:

   $encoder  

[ Top ]

method _uncompressByteString [line 1827]

void _uncompressByteString( $string)



Tags:

access:  private


Parameters:

   $string  

[ Top ]


Class Constants

XLS_BIFF7 =  0x500

[line 83]


[ Top ]

XLS_BIFF8 =  0x600

[line 82]


[ Top ]

XLS_DEF_NUM_FORMAT =  "%s"

[line 134]


[ Top ]

XLS_SecInADay =  86400

[line 132]


[ Top ]

XLS_Type_ARRAY =  0x221

[line 109]


[ Top ]

XLS_Type_BLANK =  0x0201

[line 125]


[ Top ]

XLS_Type_BOF =  0x809

[line 87]


[ Top ]

XLS_Type_BOOLERR =  0x205

[line 115]


[ Top ]

XLS_Type_BOUNDSHEET =  0x85

[line 89]


[ Top ]

XLS_Type_CODEPAGE =  0x42

[line 119]


[ Top ]

XLS_Type_COLINFO =  0x007d

[line 122]


[ Top ]

XLS_Type_CONTINUE =  0x3c

[line 103]


[ Top ]

XLS_Type_DBCELL =  0xd7

[line 92]


[ Top ]

XLS_Type_DEFAULTROWHEIGHT =  0x0225

[line 127]


[ Top ]

XLS_Type_DEFCOLWIDTH =  0x0055

[line 128]


[ Top ]

XLS_Type_DIMENSION =  0x200

[line 90]


[ Top ]

XLS_Type_EOF =  0x0a

[line 88]


[ Top ]

XLS_Type_EXTERNALBOOK =  0x01ae

[line 124]


[ Top ]

XLS_Type_EXTSHEET =  0x17

[line 107]


[ Top ]

XLS_Type_EXTSST =  0xff

[line 102]


[ Top ]

XLS_Type_FILEPASS =  0x2f

[line 93]


[ Top ]

XLS_Type_FONT =  0x0031

[line 123]


[ Top ]

XLS_Type_FORMAT =  0x41e

[line 113]


[ Top ]

XLS_Type_FORMULA =  0x406

[line 111]


[ Top ]

XLS_Type_FORMULA2 =  0x6

[line 112]


[ Top ]

XLS_Type_INDEX =  0x20b

[line 100]


[ Top ]

XLS_Type_LABEL =  0x204

[line 104]


[ Top ]

XLS_Type_LABELSST =  0xfd

[line 105]


[ Top ]

XLS_Type_MERGEDCELLS =  0xe5

[line 118]


[ Top ]

XLS_Type_MULBLANK =  0xbe

[line 99]


[ Top ]

XLS_Type_MULRK =  0xbd

[line 98]


[ Top ]

XLS_Type_NAME =  0x18

[line 108]


[ Top ]

XLS_Type_NINETEENFOUR =  0x22

[line 117]


[ Top ]

XLS_Type_NOTE =  0x1c

[line 94]


[ Top ]

XLS_Type_NUMBER =  0x203

[line 106]


[ Top ]

XLS_Type_PASSWORD =  0x0013

[line 121]


[ Top ]

XLS_Type_PROTECT =  0x0012

[line 120]


[ Top ]

XLS_Type_RK =  0x7e

[line 96]


[ Top ]

XLS_Type_RK2 =  0x27e

[line 97]


[ Top ]

XLS_Type_ROW =  0x208

[line 91]


[ Top ]

XLS_Type_SHEETPR =  0x0081

[line 126]


[ Top ]

XLS_Type_SST =  0xfc

[line 101]


[ Top ]

XLS_Type_STRING =  0x207

[line 110]


[ Top ]

XLS_Type_TXO =  0x1b6

[line 95]


[ Top ]

XLS_Type_UNKNOWN =  0xffff

[line 116]


[ Top ]

XLS_Type_XF =  0xe0

[line 114]


[ Top ]

XLS_utcOffsetDays =  25569

[line 130]


[ Top ]

XLS_utcOffsetDays1904 =  24107

[line 131]


[ Top ]

XLS_WorkbookGlobals =  0x5

[line 84]


[ Top ]

XLS_Worksheet =  0x10

[line 85]


[ Top ]



Documentation generated on Mon, 25 Aug 2008 13:37:17 +0200 by phpDocumentor 1.4.1