~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/lib/util/phpExcelReader/phpExcelReader.class.php

  • Committer: Clayton Kramer
  • Date: 2011-06-02 20:32:55 UTC
  • mto: (1.26.1 push-trunk) (7.1.1 mayon)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: clayton.kramer@mail.cuny.edu-20110602203255-jibrhvvu4193e0sa
Staff import working. Still needs to be hooked to indexer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 * @see         OLE, Spreadsheet_Excel_Writer
48
48
 * --------------------------------------------------------------------------
49
49
 */
50
 
 
51
50
abstract class phpExcelReader
52
51
{
53
 
  public function __construct()
 
52
 
 
53
  public function construct()
54
54
  {
55
55
    // @todo it would be preferred to set these up as class constants anc change calls to them
56
56
    define('NUM_BIG_BLOCK_DEPOT_BLOCKS_POS', 0x2c);
116
116
    define('SPREADSHEET_EXCEL_READER_TYPE_DEFCOLWIDTH', 0x55);
117
117
    define('SPREADSHEET_EXCEL_READER_TYPE_STANDARDWIDTH', 0x99);
118
118
    define('SPREADSHEET_EXCEL_READER_DEF_NUM_FORMAT', "%s");
119
 
}
 
119
    
 
120
  }
120
121
 
121
122
  public function GetInt4d($data, $pos)
122
123
  {
148
149
  {
149
150
    return ord($data[$pos]) | ord($data[$pos + 1]) << 8;
150
151
  }
 
152
 
151
153
}