protected function AtomDeleted::_setComment in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/AtomDeleted.php \Zend\Feed\Writer\Renderer\Entry\AtomDeleted::_setComment()
Set tombstone comment
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to AtomDeleted::_setComment()
- AtomDeleted::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ AtomDeleted.php - Render atom entry
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ AtomDeleted.php, line 60
Class
Namespace
Zend\Feed\Writer\Renderer\EntryCode
protected function _setComment(DOMDocument $dom, DOMElement $root) {
if (!$this
->getDataContainer()
->getComment()) {
return;
}
$c = $dom
->createElement('at:comment');
$root
->appendChild($c);
$c
->setAttribute('type', 'html');
$cdata = $dom
->createCDATASection($this
->getDataContainer()
->getComment());
$c
->appendChild($cdata);
}