@@ 1048-1051 (lines=4) @@ | ||
1045 | if (isset($this->cellNotes[$obj['idObjID']])) { |
|
1046 | $cellNote = $this->cellNotes[$obj['idObjID']]; |
|
1047 | ||
1048 | if (isset($this->textObjects[$obj['idObjID']])) { |
|
1049 | $textObject = $this->textObjects[$obj['idObjID']]; |
|
1050 | $this->cellNotes[$obj['idObjID']]['objTextData'] = $textObject; |
|
1051 | } |
|
1052 | } |
|
1053 | break; |
|
1054 | case 0x08: |
|
@@ 1120-1125 (lines=6) @@ | ||
1117 | if (!empty($this->cellNotes)) { |
|
1118 | foreach ($this->cellNotes as $note => $noteDetails) { |
|
1119 | if (!isset($noteDetails['objTextData'])) { |
|
1120 | if (isset($this->textObjects[$note])) { |
|
1121 | $textObject = $this->textObjects[$note]; |
|
1122 | $noteDetails['objTextData'] = $textObject; |
|
1123 | } else { |
|
1124 | $noteDetails['objTextData']['text'] = ''; |
|
1125 | } |
|
1126 | } |
|
1127 | $cellAddress = str_replace('$', '', $noteDetails['cellRef']); |
|
1128 | $this->phpSheet->getComment($cellAddress)->setAuthor($noteDetails['author'])->setText($this->parseRichText($noteDetails['objTextData']['text'])); |