protected function writeCommentsAuthors($arrayAuthors)
{
$objWriter = new XMLWriter(XMLWriter::STORAGE_MEMORY);
$objWriter->startDocument('1.0', 'UTF-8', 'yes');
// p:cmAuthorLst
$objWriter->startElement('p:cmAuthorLst');
$objWriter->writeAttribute('xmlns:p', 'http://schemas.openxmlformats.org/presentationml/2006/main');
$idxAuthor = 0;
foreach ($arrayAuthors as $oAuthor) {
$oAuthor->setIndex($idxAuthor++);
// p:cmAuthor
$objWriter->startElement('p:cmAuthor');
$objWriter->writeAttribute('id', $oAuthor->getIndex());
$objWriter->writeAttribute('name', $oAuthor->getName());
$objWriter->writeAttribute('initials', $oAuthor->getInitials());
$objWriter->writeAttribute('lastIdx', "2");
$objWriter->writeAttribute('clrIdx', 0);
$objWriter->endElement();
}
// ## p:cmAuthorLst
$objWriter->endElement();
return $objWriter->getData();
}