@@ 2738-2744 (lines=7) @@ | ||
2735 | $sheetType = ord($recordData[5]); |
|
2736 | ||
2737 | // offset: 6; size: var; sheet name |
|
2738 | if ($this->version == self::XLS_BIFF8) { |
|
2739 | $string = self::readUnicodeStringShort(substr($recordData, 6)); |
|
2740 | $rec_name = $string['value']; |
|
2741 | } elseif ($this->version == self::XLS_BIFF7) { |
|
2742 | $string = $this->readByteStringShort(substr($recordData, 6)); |
|
2743 | $rec_name = $string['value']; |
|
2744 | } |
|
2745 | ||
2746 | $this->sheets[] = [ |
|
2747 | 'name' => $rec_name, |
|
@@ 4241-4247 (lines=7) @@ | ||
4238 | ||
4239 | // add cell value |
|
4240 | // todo: what if string is very long? continue record |
|
4241 | if ($this->version == self::XLS_BIFF8) { |
|
4242 | $string = self::readUnicodeStringLong(substr($recordData, 6)); |
|
4243 | $value = $string['value']; |
|
4244 | } else { |
|
4245 | $string = $this->readByteStringLong(substr($recordData, 6)); |
|
4246 | $value = $string['value']; |
|
4247 | } |
|
4248 | if ($this->readEmptyCells || trim($value) !== '') { |
|
4249 | $cell = $this->phpSheet->getCell($columnString . ($row + 1)); |
|
4250 | $cell->setValueExplicit($value, DataType::TYPE_STRING); |