protected function Deleted::_setComment in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Atom/Deleted.php \Zend\Feed\Writer\Renderer\Entry\Atom\Deleted::_setComment()
Set tombstone comment
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Deleted::_setComment()
- Deleted::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Atom/ Deleted.php - Render atom entry
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Atom/ Deleted.php, line 58
Class
Namespace
Zend\Feed\Writer\Renderer\Entry\AtomCode
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);
}