You are here

protected function AtomDeleted::_setComment in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

AtomDeleted

Namespace

Zend\Feed\Writer\Renderer\Entry

Code

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);
}