You are here

public function Atom::getDateModified 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::getDateModified()
  2. 8 vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php \Zend\Feed\Reader\Feed\Atom::getDateModified()
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php \Zend\Feed\Reader\Feed\Atom::getDateModified()

Get the feed modification date

Return value

string|null

Overrides FeedInterface::getDateModified

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

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