protected function Rss::_setDateModified in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Rss.php \Zend\Feed\Writer\Renderer\Entry\Rss::_setDateModified()
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Rss.php \Zend\Feed\Writer\Renderer\Feed\Rss::_setDateModified()
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Rss.php \Zend\Feed\Writer\Renderer\Entry\Rss::_setDateModified()
Set date entry was last modified
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Rss::_setDateModified()
- Rss::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Rss.php - Render RSS entry
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Rss.php, line 135
Class
Namespace
Zend\Feed\Writer\Renderer\EntryCode
protected function _setDateModified(DOMDocument $dom, DOMElement $root) {
if (!$this
->getDataContainer()
->getDateModified()) {
return;
}
$updated = $dom
->createElement('pubDate');
$root
->appendChild($updated);
$text = $dom
->createTextNode($this
->getDataContainer()
->getDateModified()
->format(DateTime::RSS));
$updated
->appendChild($text);
}