@@ 1111-1114 (lines=4) @@ | ||
1108 | if (isset($this->cellNotes[$obj['idObjID']])) { |
|
1109 | $cellNote = $this->cellNotes[$obj['idObjID']]; |
|
1110 | ||
1111 | if (isset($this->textObjects[$obj['idObjID']])) { |
|
1112 | $textObject = $this->textObjects[$obj['idObjID']]; |
|
1113 | $this->cellNotes[$obj['idObjID']]['objTextData'] = $textObject; |
|
1114 | } |
|
1115 | } |
|
1116 | ||
1117 | break; |
|
@@ 1187-1192 (lines=6) @@ | ||
1184 | if (!empty($this->cellNotes)) { |
|
1185 | foreach ($this->cellNotes as $note => $noteDetails) { |
|
1186 | if (!isset($noteDetails['objTextData'])) { |
|
1187 | if (isset($this->textObjects[$note])) { |
|
1188 | $textObject = $this->textObjects[$note]; |
|
1189 | $noteDetails['objTextData'] = $textObject; |
|
1190 | } else { |
|
1191 | $noteDetails['objTextData']['text'] = ''; |
|
1192 | } |
|
1193 | } |
|
1194 | $cellAddress = str_replace('$', '', $noteDetails['cellRef']); |
|
1195 | $this->phpSheet->getComment($cellAddress)->setAuthor($noteDetails['author'])->setText($this->parseRichText($noteDetails['objTextData']['text'])); |