public function render()
{
/**
* @var Author[]
*/
$arrayAuthors = array();
foreach ($this->getPresentation()->getAllSlides() as $oSlide) {
foreach ($oSlide->getShapeCollection() as $oShape) {
if (!$oShape instanceof Comment) {
continue;
}
$oAuthor = $oShape->getAuthor();
if (!$oAuthor instanceof Author) {
continue;
}
if (array_key_exists($oAuthor->getHashCode(), $arrayAuthors)) {
continue;
}
$arrayAuthors[$oAuthor->getHashCode()] = $oAuthor;
}
}
if (!empty($arrayAuthors)) {
$this->getZip()->addFromString('ppt/commentAuthors.xml', $this->writeCommentsAuthors($arrayAuthors));
}
return $this->getZip();
}