You are here

protected function AbstractAtom::_setDateCreated in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\AbstractAtom::_setDateCreated()
  2. 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Atom/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setDateCreated()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\AbstractAtom::_setDateCreated()

Set date feed was created

Parameters

DOMDocument $dom:

DOMElement $root:

Return value

void

2 calls to AbstractAtom::_setDateCreated()
Atom::render in vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Atom.php
Render Atom feed
AtomSource::render in vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AtomSource.php
Render Atom Feed Metadata (Source element)

File

vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AbstractAtom.php, line 327

Class

AbstractAtom

Namespace

Zend\Feed\Writer\Renderer\Feed

Code

protected function _setDateCreated(DOMDocument $dom, DOMElement $root) {
  if (!$this
    ->getDataContainer()
    ->getDateCreated()) {
    return;
  }
  if (!$this
    ->getDataContainer()
    ->getDateModified()) {
    $this
      ->getDataContainer()
      ->setDateModified($this
      ->getDataContainer()
      ->getDateCreated());
  }
}