You are here

public function AtomDeleted::render in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/AtomDeleted.php \Zend\Feed\Writer\Renderer\Entry\AtomDeleted::render()

Render atom entry

Return value

\Zend\Feed\Writer\Renderer\Entry\Atom

File

vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/AtomDeleted.php, line 37

Class

AtomDeleted

Namespace

Zend\Feed\Writer\Renderer\Entry

Code

public function render() {
  $this->dom = new DOMDocument('1.0', $this->container
    ->getEncoding());
  $this->dom->formatOutput = true;
  $entry = $this->dom
    ->createElement('at:deleted-entry');
  $this->dom
    ->appendChild($entry);
  $entry
    ->setAttribute('ref', $this->container
    ->getReference());
  $entry
    ->setAttribute('when', $this->container
    ->getWhen()
    ->format(DateTime::ATOM));
  $this
    ->_setBy($this->dom, $entry);
  $this
    ->_setComment($this->dom, $entry);
  return $this;
}