protected function Atom::_setDateCreated in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Atom.php \Zend\Feed\Writer\Renderer\Entry\Atom::_setDateCreated()
Set date entry was created
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Atom::_setDateCreated()
- Atom::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Atom.php - Render atom entry
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Atom.php, line 152
Class
Namespace
Zend\Feed\Writer\Renderer\EntryCode
protected function _setDateCreated(DOMDocument $dom, DOMElement $root) {
if (!$this
->getDataContainer()
->getDateCreated()) {
return;
}
$el = $dom
->createElement('published');
$root
->appendChild($el);
$text = $dom
->createTextNode($this
->getDataContainer()
->getDateCreated()
->format(DateTime::ATOM));
$el
->appendChild($text);
}