@@ 1017-1020 (lines=4) @@ | ||
1014 | if (isset($this->cellNotes[$obj['idObjID']])) { |
|
1015 | $cellNote = $this->cellNotes[$obj['idObjID']]; |
|
1016 | ||
1017 | if (isset($this->textObjects[$obj['idObjID']])) { |
|
1018 | $textObject = $this->textObjects[$obj['idObjID']]; |
|
1019 | $this->cellNotes[$obj['idObjID']]['objTextData'] = $textObject; |
|
1020 | } |
|
1021 | } |
|
1022 | break; |
|
1023 | case 0x08: |
|
@@ 1089-1094 (lines=6) @@ | ||
1086 | if (!empty($this->cellNotes)) { |
|
1087 | foreach ($this->cellNotes as $note => $noteDetails) { |
|
1088 | if (!isset($noteDetails['objTextData'])) { |
|
1089 | if (isset($this->textObjects[$note])) { |
|
1090 | $textObject = $this->textObjects[$note]; |
|
1091 | $noteDetails['objTextData'] = $textObject; |
|
1092 | } else { |
|
1093 | $noteDetails['objTextData']['text'] = ''; |
|
1094 | } |
|
1095 | } |
|
1096 | $cellAddress = str_replace('$', '', $noteDetails['cellRef']); |
|
1097 | $this->phpSheet->getComment($cellAddress)->setAuthor($noteDetails['author'])->setText($this->parseRichText($noteDetails['objTextData']['text'])); |