You are here

protected function Atom::indexEntries in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php \Zend\Feed\Reader\Feed\Atom::indexEntries()

Read all entries to the internal entries array

Return value

void

Overrides AbstractFeed::indexEntries

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

protected function indexEntries() {
  if ($this
    ->getType() == Reader\Reader::TYPE_ATOM_10 || $this
    ->getType() == Reader\Reader::TYPE_ATOM_03) {
    $entries = $this->xpath
      ->evaluate('//atom:entry');
    foreach ($entries as $index => $entry) {
      $this->entries[$index] = $entry;
    }
  }
}