public function Deleted::render in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Atom/Deleted.php \Zend\Feed\Writer\Renderer\Entry\Atom\Deleted::render()
Render atom entry
Return value
Writer\Renderer\Entry\Atom
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Atom/ Deleted.php, line 35
Class
Namespace
Zend\Feed\Writer\Renderer\Entry\AtomCode
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;
}