You are here

public function Atom::getDateCreated in Zircon Profile 8

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

Get the feed creation date

Return value

string|null

Overrides FeedInterface::getDateCreated

File

vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php, line 109

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

public function getDateCreated() {
  if (array_key_exists('datecreated', $this->data)) {
    return $this->data['datecreated'];
  }
  $dateCreated = $this
    ->getExtension('Atom')
    ->getDateCreated();
  if (!$dateCreated) {
    $dateCreated = null;
  }
  $this->data['datecreated'] = $dateCreated;
  return $this->data['datecreated'];
}