ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
myHex ($d) | |
dumpHexData ($data, $pos, $length) | |
getCol ($col) | |
val ($row, $col, $sheet=0) | |
value ($row, $col, $sheet=0) | |
info ($row, $col, $type='', $sheet=0) | |
type ($row, $col, $sheet=0) | |
raw ($row, $col, $sheet=0) | |
rowspan ($row, $col, $sheet=0) | |
colspan ($row, $col, $sheet=0) | |
hyperlink ($row, $col, $sheet=0) | |
rowcount ($sheet=0) | |
colcount ($sheet=0) | |
colwidth ($col, $sheet=0) | |
colhidden ($col, $sheet=0) | |
rowheight ($row, $sheet=0) | |
rowhidden ($row, $sheet=0) | |
style ($row, $col, $sheet=0, $properties='') | |
format ($row, $col, $sheet=0) | |
formatIndex ($row, $col, $sheet=0) | |
formatColor ($row, $col, $sheet=0) | |
xfRecord ($row, $col, $sheet=0) | |
xfProperty ($row, $col, $sheet, $prop) | |
align ($row, $col, $sheet=0) | |
bgColor ($row, $col, $sheet=0) | |
borderLeft ($row, $col, $sheet=0) | |
borderRight ($row, $col, $sheet=0) | |
borderTop ($row, $col, $sheet=0) | |
borderBottom ($row, $col, $sheet=0) | |
borderLeftColor ($row, $col, $sheet=0) | |
borderRightColor ($row, $col, $sheet=0) | |
borderTopColor ($row, $col, $sheet=0) | |
borderBottomColor ($row, $col, $sheet=0) | |
fontRecord ($row, $col, $sheet=0) | |
fontProperty ($row, $col, $sheet=0, $prop) | |
fontIndex ($row, $col, $sheet=0) | |
color ($row, $col, $sheet=0) | |
rawColor ($ci) | |
bold ($row, $col, $sheet=0) | |
italic ($row, $col, $sheet=0) | |
underline ($row, $col, $sheet=0) | |
height ($row, $col, $sheet=0) | |
font ($row, $col, $sheet=0) | |
dump ($row_numbers=false, $col_letters=false, $sheet=0, $table_class='excel') | |
read16bitstring ($data, $start) | |
_format_value ($format, $num, $f) | |
Spreadsheet_Excel_Reader ($file='', $store_extended_info=true, $outputEncoding='') | |
Constructor. | |
setOutputEncoding ($encoding) | |
Set the encoding method. | |
setUTFEncoder ($encoder= 'iconv') | |
$encoder = 'iconv' or 'mb' set iconv if you would like use 'iconv' for encode UTF-16LE to your encoding set mb if you would like use 'mb_convert_encoding' for encode UTF-16LE to your encoding | |
setRowColOffset ($iOffset) | |
setDefaultFormat ($sFormat) | |
Set the default number format. | |
setColumnFormat ($column, $sFormat) | |
Force a column to use a certain format. | |
read ($sFileName) | |
Read the spreadsheet file using OLE, then parse. | |
_parse () | |
Parse a workbook. | |
_parsesheet ($spos) | |
Parse a worksheet. | |
isDate ($spos) | |
_getCellDetails ($spos, $numValue, $column) | |
createNumber ($spos) | |
addcell ($row, $col, $string, $info=null) | |
_GetIEEE754 ($rknum) | |
_encodeUTF16 ($string) | |
_GetInt4d ($data, $pos) |
Data Fields | |
$colnames = array() | |
$colindexes = array() | |
$standardColWidth = 0 | |
$defaultColWidth = 0 | |
$boundsheets = array() | |
$formatRecords = array() | |
$fontRecords = array() | |
$xfRecords = array() | |
$colInfo = array() | |
$rowInfo = array() | |
$sst = array() | |
$sheets = array() | |
$data | |
$_ole | |
$_defaultEncoding = "UTF-8" | |
$_defaultFormat = SPREADSHEET_EXCEL_READER_DEF_NUM_FORMAT | |
$_columnsFormat = array() | |
$_rowoffset = 1 | |
$_coloffset = 1 | |
$dateFormats | |
List of default date formats used by Excel. | |
$numberFormats | |
Default number formats used by Excel. | |
$colors | |
$lineStyles | |
$lineStylesCss |
Definition at line 312 of file excel_reader2.php.
Spreadsheet_Excel_Reader::_encodeUTF16 | ( | $string | ) |
Definition at line 1714 of file excel_reader2.php.
References $result.
Referenced by _parse(), and _parsesheet().
Spreadsheet_Excel_Reader::_format_value | ( | $format, | |
$num, | |||
$f | |||
) |
Definition at line 835 of file excel_reader2.php.
Referenced by _getCellDetails().
Spreadsheet_Excel_Reader::_getCellDetails | ( | $spos, | |
$numValue, | |||
$column | |||
) |
Definition at line 1597 of file excel_reader2.php.
References $_defaultFormat, _format_value(), gmgetdate(), SPREADSHEET_EXCEL_READER_MSINADAY, SPREADSHEET_EXCEL_READER_UTCOFFSETDAYS, and SPREADSHEET_EXCEL_READER_UTCOFFSETDAYS1904.
Referenced by _parsesheet().
Spreadsheet_Excel_Reader::_GetIEEE754 | ( | $rknum | ) |
Definition at line 1689 of file excel_reader2.php.
Referenced by _parsesheet().
Spreadsheet_Excel_Reader::_GetInt4d | ( | $data, | |
$pos | |||
) |
Definition at line 1727 of file excel_reader2.php.
References $data.
Referenced by _parse(), _parsesheet(), and createNumber().
Spreadsheet_Excel_Reader::_parse | ( | ) |
Parse a workbook.
private
Definition at line 997 of file excel_reader2.php.
References $colors, $data, _encodeUTF16(), _GetInt4d(), _parsesheet(), dumpHexData(), SPREADSHEET_EXCEL_READER_BIFF7, SPREADSHEET_EXCEL_READER_BIFF8, SPREADSHEET_EXCEL_READER_TYPE_BOUNDSHEET, SPREADSHEET_EXCEL_READER_TYPE_EOF, SPREADSHEET_EXCEL_READER_TYPE_FILEPASS, SPREADSHEET_EXCEL_READER_TYPE_FONT, SPREADSHEET_EXCEL_READER_TYPE_FORMAT, SPREADSHEET_EXCEL_READER_TYPE_NAME, SPREADSHEET_EXCEL_READER_TYPE_NINETEENFOUR, SPREADSHEET_EXCEL_READER_TYPE_PALETTE, SPREADSHEET_EXCEL_READER_TYPE_SST, SPREADSHEET_EXCEL_READER_TYPE_XF, SPREADSHEET_EXCEL_READER_WORKBOOKGLOBALS, and v().
Referenced by read().
Spreadsheet_Excel_Reader::_parsesheet | ( | $spos | ) |
Parse a worksheet.
Definition at line 1323 of file excel_reader2.php.
References $columns, $data, $row, $rowInfo, _encodeUTF16(), _getCellDetails(), _GetIEEE754(), _GetInt4d(), addcell(), createNumber(), isDate(), read16bitstring(), SPREADSHEET_EXCEL_READER_BIFF7, SPREADSHEET_EXCEL_READER_BIFF8, SPREADSHEET_EXCEL_READER_TYPE_BOOLERR, SPREADSHEET_EXCEL_READER_TYPE_COLINFO, SPREADSHEET_EXCEL_READER_TYPE_DBCELL, SPREADSHEET_EXCEL_READER_TYPE_DEFCOLWIDTH, SPREADSHEET_EXCEL_READER_TYPE_DIMENSION, SPREADSHEET_EXCEL_READER_TYPE_EOF, SPREADSHEET_EXCEL_READER_TYPE_FORMULA, SPREADSHEET_EXCEL_READER_TYPE_FORMULA2, SPREADSHEET_EXCEL_READER_TYPE_HYPER, SPREADSHEET_EXCEL_READER_TYPE_LABEL, SPREADSHEET_EXCEL_READER_TYPE_LABELSST, SPREADSHEET_EXCEL_READER_TYPE_MERGEDCELLS, SPREADSHEET_EXCEL_READER_TYPE_MULBLANK, SPREADSHEET_EXCEL_READER_TYPE_MULRK, SPREADSHEET_EXCEL_READER_TYPE_NUMBER, SPREADSHEET_EXCEL_READER_TYPE_RK, SPREADSHEET_EXCEL_READER_TYPE_RK2, SPREADSHEET_EXCEL_READER_TYPE_ROW, SPREADSHEET_EXCEL_READER_TYPE_STANDARDWIDTH, SPREADSHEET_EXCEL_READER_TYPE_STRING, and SPREADSHEET_EXCEL_READER_WORKSHEET.
Referenced by _parse().
Spreadsheet_Excel_Reader::addcell | ( | $row, | |
$col, | |||
$string, | |||
$info = null |
|||
) |
Definition at line 1677 of file excel_reader2.php.
References $_coloffset, $_rowoffset, and $row.
Referenced by _parsesheet().
Spreadsheet_Excel_Reader::align | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 502 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::bgColor | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 505 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::bold | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 569 of file excel_reader2.php.
References $row, and fontProperty().
Referenced by style().
Spreadsheet_Excel_Reader::borderBottom | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 517 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::borderBottomColor | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 529 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::borderLeft | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 508 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::borderLeftColor | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 520 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::borderRight | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 511 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::borderRightColor | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 523 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::borderTop | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 514 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::borderTopColor | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 526 of file excel_reader2.php.
References $row, and xfProperty().
Referenced by style().
Spreadsheet_Excel_Reader::colcount | ( | $sheet = 0 | ) |
Definition at line 392 of file excel_reader2.php.
Referenced by dump().
Spreadsheet_Excel_Reader::colhidden | ( | $col, | |
$sheet = 0 |
|||
) |
Definition at line 399 of file excel_reader2.php.
Referenced by dump().
Spreadsheet_Excel_Reader::color | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 555 of file excel_reader2.php.
References $row, fontProperty(), formatColor(), and rawColor().
Referenced by style().
Spreadsheet_Excel_Reader::colspan | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Spreadsheet_Excel_Reader::colwidth | ( | $col, | |
$sheet = 0 |
|||
) |
Definition at line 395 of file excel_reader2.php.
Referenced by dump().
Spreadsheet_Excel_Reader::createNumber | ( | $spos | ) |
Definition at line 1662 of file excel_reader2.php.
References _GetInt4d().
Referenced by _parsesheet().
Spreadsheet_Excel_Reader::dump | ( | $row_numbers = false , |
|
$col_letters = false , |
|||
$sheet = 0 , |
|||
$table_class = 'excel' |
|||
) |
Definition at line 587 of file excel_reader2.php.
References $out, $row, colcount(), colhidden(), colspan(), colwidth(), hyperlink(), rowcount(), rowheight(), rowhidden(), rowspan(), style(), and val().
Spreadsheet_Excel_Reader::dumpHexData | ( | $data, | |
$pos, | |||
$length | |||
) |
Definition at line 325 of file excel_reader2.php.
References $data, and myHex().
Referenced by _parse().
Spreadsheet_Excel_Reader::font | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 581 of file excel_reader2.php.
References $row, and fontProperty().
Referenced by style().
Spreadsheet_Excel_Reader::fontIndex | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 552 of file excel_reader2.php.
References $row, and xfProperty().
Spreadsheet_Excel_Reader::fontProperty | ( | $row, | |
$col, | |||
$sheet = 0 , |
|||
$prop | |||
) |
Definition at line 545 of file excel_reader2.php.
References $row, and fontRecord().
Referenced by bold(), color(), font(), height(), italic(), and underline().
Spreadsheet_Excel_Reader::fontRecord | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 535 of file excel_reader2.php.
References $row, and xfRecord().
Referenced by fontProperty().
Spreadsheet_Excel_Reader::format | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Spreadsheet_Excel_Reader::formatColor | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Spreadsheet_Excel_Reader::formatIndex | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Spreadsheet_Excel_Reader::getCol | ( | $col | ) |
Definition at line 333 of file excel_reader2.php.
Referenced by info(), and val().
Spreadsheet_Excel_Reader::height | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 578 of file excel_reader2.php.
References $row, and fontProperty().
Referenced by style().
Spreadsheet_Excel_Reader::hyperlink | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 382 of file excel_reader2.php.
References $row.
Referenced by dump().
Spreadsheet_Excel_Reader::info | ( | $row, | |
$col, | |||
$type = '' , |
|||
$sheet = 0 |
|||
) |
Definition at line 356 of file excel_reader2.php.
References $row, and getCol().
Referenced by colspan(), format(), formatColor(), formatIndex(), raw(), rowspan(), type(), and xfRecord().
Spreadsheet_Excel_Reader::isDate | ( | $spos | ) |
Definition at line 1591 of file excel_reader2.php.
Referenced by _parsesheet().
Spreadsheet_Excel_Reader::italic | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 572 of file excel_reader2.php.
References $row, and fontProperty().
Referenced by style().
Spreadsheet_Excel_Reader::myHex | ( | $d | ) |
Definition at line 320 of file excel_reader2.php.
References $d.
Referenced by dumpHexData().
Spreadsheet_Excel_Reader::raw | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Spreadsheet_Excel_Reader::rawColor | ( | $ci | ) |
Definition at line 563 of file excel_reader2.php.
Referenced by color().
Spreadsheet_Excel_Reader::read | ( | $sFileName | ) |
Read the spreadsheet file using OLE, then parse.
Definition at line 975 of file excel_reader2.php.
References $res, and _parse().
Referenced by Spreadsheet_Excel_Reader().
Spreadsheet_Excel_Reader::read16bitstring | ( | $data, | |
$start | |||
) |
Definition at line 828 of file excel_reader2.php.
References $data.
Referenced by _parsesheet().
Spreadsheet_Excel_Reader::rowcount | ( | $sheet = 0 | ) |
Definition at line 389 of file excel_reader2.php.
Referenced by dump().
Spreadsheet_Excel_Reader::rowheight | ( | $row, | |
$sheet = 0 |
|||
) |
Definition at line 402 of file excel_reader2.php.
References $row.
Referenced by dump().
Spreadsheet_Excel_Reader::rowhidden | ( | $row, | |
$sheet = 0 |
|||
) |
Definition at line 405 of file excel_reader2.php.
References $row.
Referenced by dump().
Spreadsheet_Excel_Reader::rowspan | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Spreadsheet_Excel_Reader::setColumnFormat | ( | $column, | |
$sFormat | |||
) |
Force a column to use a certain format.
Definition at line 968 of file excel_reader2.php.
Spreadsheet_Excel_Reader::setDefaultFormat | ( | $sFormat | ) |
Set the default number format.
Definition at line 961 of file excel_reader2.php.
Spreadsheet_Excel_Reader::setOutputEncoding | ( | $encoding | ) |
Set the encoding method.
Definition at line 935 of file excel_reader2.php.
Referenced by Spreadsheet_Excel_Reader().
Spreadsheet_Excel_Reader::setRowColOffset | ( | $iOffset | ) |
Definition at line 953 of file excel_reader2.php.
Spreadsheet_Excel_Reader::setUTFEncoder | ( | $encoder = 'iconv' | ) |
$encoder = 'iconv' or 'mb' set iconv if you would like use 'iconv' for encode UTF-16LE to your encoding set mb if you would like use 'mb_convert_encoding' for encode UTF-16LE to your encoding
Definition at line 944 of file excel_reader2.php.
Referenced by Spreadsheet_Excel_Reader().
Spreadsheet_Excel_Reader::Spreadsheet_Excel_Reader | ( | $file = '' , |
|
$store_extended_info = true , |
|||
$outputEncoding = '' |
|||
) |
Constructor.
Some basic initialisation
Definition at line 915 of file excel_reader2.php.
References $file, read(), setOutputEncoding(), and setUTFEncoder().
Spreadsheet_Excel_Reader::style | ( | $row, | |
$col, | |||
$sheet = 0 , |
|||
$properties = '' |
|||
) |
Definition at line 411 of file excel_reader2.php.
References $row, align(), bgColor(), bold(), borderBottom(), borderBottomColor(), borderLeft(), borderLeftColor(), borderRight(), borderRightColor(), borderTop(), borderTopColor(), color(), font(), height(), italic(), and underline().
Referenced by dump().
Spreadsheet_Excel_Reader::type | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Spreadsheet_Excel_Reader::underline | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 575 of file excel_reader2.php.
References $row, and fontProperty().
Referenced by style().
Spreadsheet_Excel_Reader::val | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 346 of file excel_reader2.php.
References $row, and getCol().
Referenced by dump(), and value().
Spreadsheet_Excel_Reader::value | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Spreadsheet_Excel_Reader::xfProperty | ( | $row, | |
$col, | |||
$sheet, | |||
$prop | |||
) |
Definition at line 495 of file excel_reader2.php.
References $row, and xfRecord().
Referenced by align(), bgColor(), borderBottom(), borderBottomColor(), borderLeft(), borderLeftColor(), borderRight(), borderRightColor(), borderTop(), borderTopColor(), and fontIndex().
Spreadsheet_Excel_Reader::xfRecord | ( | $row, | |
$col, | |||
$sheet = 0 |
|||
) |
Definition at line 488 of file excel_reader2.php.
Referenced by fontRecord(), and xfProperty().
Spreadsheet_Excel_Reader::$_coloffset = 1 |
Definition at line 671 of file excel_reader2.php.
Referenced by addcell().
Spreadsheet_Excel_Reader::$_columnsFormat = array() |
Definition at line 669 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$_defaultEncoding = "UTF-8" |
Definition at line 667 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$_defaultFormat = SPREADSHEET_EXCEL_READER_DEF_NUM_FORMAT |
Definition at line 668 of file excel_reader2.php.
Referenced by _getCellDetails().
Spreadsheet_Excel_Reader::$_ole |
Definition at line 666 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$_rowoffset = 1 |
Definition at line 670 of file excel_reader2.php.
Referenced by addcell().
Spreadsheet_Excel_Reader::$boundsheets = array() |
Definition at line 655 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$colindexes = array() |
Definition at line 316 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$colInfo = array() |
Definition at line 659 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$colnames = array() |
Definition at line 315 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$colors |
Definition at line 717 of file excel_reader2.php.
Referenced by _parse().
Spreadsheet_Excel_Reader::$data |
Definition at line 665 of file excel_reader2.php.
Referenced by _GetInt4d(), _parse(), _parsesheet(), dumpHexData(), and read16bitstring().
Spreadsheet_Excel_Reader::$dateFormats |
List of default date formats used by Excel.
Definition at line 676 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$defaultColWidth = 0 |
Definition at line 318 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$fontRecords = array() |
Definition at line 657 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$formatRecords = array() |
Definition at line 656 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$lineStyles |
Definition at line 795 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$lineStylesCss |
Definition at line 812 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$numberFormats |
Default number formats used by Excel.
Definition at line 694 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$rowInfo = array() |
Definition at line 660 of file excel_reader2.php.
Referenced by _parsesheet().
Spreadsheet_Excel_Reader::$sheets = array() |
Definition at line 663 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$sst = array() |
Definition at line 662 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$standardColWidth = 0 |
Definition at line 317 of file excel_reader2.php.
Spreadsheet_Excel_Reader::$xfRecords = array() |
Definition at line 658 of file excel_reader2.php.