@@ 2606-2612 (lines=7) @@ | ||
2603 | $sheetType = ord($recordData[5]); |
|
2604 | ||
2605 | // offset: 6; size: var; sheet name |
|
2606 | if ($this->version == self::XLS_BIFF8) { |
|
2607 | $string = self::readUnicodeStringShort(substr($recordData, 6)); |
|
2608 | $rec_name = $string['value']; |
|
2609 | } elseif ($this->version == self::XLS_BIFF7) { |
|
2610 | $string = $this->readByteStringShort(substr($recordData, 6)); |
|
2611 | $rec_name = $string['value']; |
|
2612 | } |
|
2613 | ||
2614 | $this->sheets[] = [ |
|
2615 | 'name' => $rec_name, |
|
@@ 4102-4108 (lines=7) @@ | ||
4099 | ||
4100 | // add cell value |
|
4101 | // todo: what if string is very long? continue record |
|
4102 | if ($this->version == self::XLS_BIFF8) { |
|
4103 | $string = self::readUnicodeStringLong(substr($recordData, 6)); |
|
4104 | $value = $string['value']; |
|
4105 | } else { |
|
4106 | $string = $this->readByteStringLong(substr($recordData, 6)); |
|
4107 | $value = $string['value']; |
|
4108 | } |
|
4109 | if ($this->readEmptyCells || trim($value) !== '') { |
|
4110 | $cell = $this->phpSheet->getCell($columnString . ($row + 1)); |
|
4111 | $cell->setValueExplicit($value, Cell\DataType::TYPE_STRING); |