You are here

protected function Deleted::_setComment in Zircon Profile 8.0

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

Deleted

Namespace

Zend\Feed\Writer\Renderer\Entry\Atom

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