protected function Rss::indexEntries in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Zend\Feed\Reader\FeedCode
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;
}
}