@@ 2612-2618 (lines=7) @@ | ||
2609 | $sheetType = ord($recordData{5}); |
|
2610 | ||
2611 | // offset: 6; size: var; sheet name |
|
2612 | if ($this->version == self::XLS_BIFF8) { |
|
2613 | $string = self::readUnicodeStringShort(substr($recordData, 6)); |
|
2614 | $rec_name = $string['value']; |
|
2615 | } elseif ($this->version == self::XLS_BIFF7) { |
|
2616 | $string = $this->readByteStringShort(substr($recordData, 6)); |
|
2617 | $rec_name = $string['value']; |
|
2618 | } |
|
2619 | ||
2620 | $this->sheets[] = array( |
|
2621 | 'name' => $rec_name, |
|
@@ 4144-4150 (lines=7) @@ | ||
4141 | ||
4142 | // add cell value |
|
4143 | // todo: what if string is very long? continue record |
|
4144 | if ($this->version == self::XLS_BIFF8) { |
|
4145 | $string = self::readUnicodeStringLong(substr($recordData, 6)); |
|
4146 | $value = $string['value']; |
|
4147 | } else { |
|
4148 | $string = $this->readByteStringLong(substr($recordData, 6)); |
|
4149 | $value = $string['value']; |
|
4150 | } |
|
4151 | if ($this->readEmptyCells || trim($value) !== '') { |
|
4152 | $cell = $this->phpSheet->getCell($columnString . ($row + 1)); |
|
4153 | $cell->setValueExplicit($value, \PhpSpreadsheet\Cell\DataType::TYPE_STRING); |