public function PHPExcel_Writer_Excel2007_Comments::_writeComment in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Comments.php \PHPExcel_Writer_Excel2007_Comments::_writeComment()
* Write comment to XML format * *
Parameters
PHPExcel_Shared_XMLWriter $objWriter XML Writer: * @param string $pCellReference Cell reference * @param PHPExcel_Comment $pComment Comment * @param array $pAuthors Array of authors * @throws PHPExcel_Writer_Exception
1 call to PHPExcel_Writer_Excel2007_Comments::_writeComment()
- PHPExcel_Writer_Excel2007_Comments::writeComments in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Comments.php - * Write comments to XML format * *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Comments.php, line 103
Class
- PHPExcel_Writer_Excel2007_Comments
- PHPExcel_Writer_Excel2007_Comments
Code
public function _writeComment(PHPExcel_Shared_XMLWriter $objWriter = null, $pCellReference = 'A1', PHPExcel_Comment $pComment = null, $pAuthors = null) {
// comment
$objWriter
->startElement('comment');
$objWriter
->writeAttribute('ref', $pCellReference);
$objWriter
->writeAttribute('authorId', $pAuthors[$pComment
->getAuthor()]);
// text
$objWriter
->startElement('text');
$this
->getParentWriter()
->getWriterPart('stringtable')
->writeRichText($objWriter, $pComment
->getText());
$objWriter
->endElement();
$objWriter
->endElement();
}