You are here

protected function Rss::indexEntries in Zircon Profile 8

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

Read all entries to the internal entries array

Overrides AbstractFeed::indexEntries

File

vendor/zendframework/zend-feed/src/Reader/Feed/Rss.php, line 663

Class

Rss

Namespace

Zend\Feed\Reader\Feed

Code

protected function indexEntries() {
  if ($this
    ->getType() !== Reader\Reader::TYPE_RSS_10 && $this
    ->getType() !== Reader\Reader::TYPE_RSS_090) {
    $entries = $this->xpath
      ->evaluate('//item');
  }
  else {
    $entries = $this->xpath
      ->evaluate('//rss:item');
  }
  foreach ($entries as $index => $entry) {
    $this->entries[$index] = $entry;
  }
}