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/Entry/Atom.php \Zend\Feed\Reader\Entry\Atom::getDateCreated()

Get the entry creation date

Return value

string

Overrides EntryInterface::getDateCreated

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Entry

Code

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