protected function Rss::registerNamespaces 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::registerNamespaces()
Register the default namespaces for the current feed format
Overrides AbstractFeed::registerNamespaces
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Feed/ Rss.php, line 680
Class
Namespace
Zend\Feed\Reader\FeedCode
protected function registerNamespaces() {
switch ($this->data['type']) {
case Reader\Reader::TYPE_RSS_10:
$this->xpath
->registerNamespace('rdf', Reader\Reader::NAMESPACE_RDF);
$this->xpath
->registerNamespace('rss', Reader\Reader::NAMESPACE_RSS_10);
break;
case Reader\Reader::TYPE_RSS_090:
$this->xpath
->registerNamespace('rdf', Reader\Reader::NAMESPACE_RDF);
$this->xpath
->registerNamespace('rss', Reader\Reader::NAMESPACE_RSS_090);
break;
}
}