|
@@ 2445-2451 (lines=7) @@
|
| 2442 |
|
$sheetType = ord($recordData{5}); |
| 2443 |
|
|
| 2444 |
|
// offset: 6; size: var; sheet name |
| 2445 |
|
if ($this->_version == self::XLS_BIFF8) { |
| 2446 |
|
$string = self::_readUnicodeStringShort(substr($recordData, 6)); |
| 2447 |
|
$rec_name = $string['value']; |
| 2448 |
|
} elseif ($this->_version == self::XLS_BIFF7) { |
| 2449 |
|
$string = $this->_readByteStringShort(substr($recordData, 6)); |
| 2450 |
|
$rec_name = $string['value']; |
| 2451 |
|
} |
| 2452 |
|
|
| 2453 |
|
$this->_sheets[] = array( |
| 2454 |
|
'name' => $rec_name, |
|
@@ 3992-3998 (lines=7) @@
|
| 3989 |
|
|
| 3990 |
|
// add cell value |
| 3991 |
|
// todo: what if string is very long? continue record |
| 3992 |
|
if ($this->_version == self::XLS_BIFF8) { |
| 3993 |
|
$string = self::_readUnicodeStringLong(substr($recordData, 6)); |
| 3994 |
|
$value = $string['value']; |
| 3995 |
|
} else { |
| 3996 |
|
$string = $this->_readByteStringLong(substr($recordData, 6)); |
| 3997 |
|
$value = $string['value']; |
| 3998 |
|
} |
| 3999 |
|
$cell = $this->_phpSheet->getCell($columnString . ($row + 1)); |
| 4000 |
|
$cell->setValueExplicit($value, PHPExcel_Cell_DataType::TYPE_STRING); |
| 4001 |
|
|