protected function Atom::registerNamespaces in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php \Zend\Feed\Reader\Feed\Atom::registerNamespaces()
Register the default namespaces for the current feed format
Overrides AbstractFeed::registerNamespaces
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Feed/ Atom.php, line 397
Class
Namespace
Zend\Feed\Reader\FeedCode
protected function registerNamespaces() {
switch ($this->data['type']) {
case Reader\Reader::TYPE_ATOM_03:
$this->xpath
->registerNamespace('atom', Reader\Reader::NAMESPACE_ATOM_03);
break;
case Reader\Reader::TYPE_ATOM_10:
default:
$this->xpath
->registerNamespace('atom', Reader\Reader::NAMESPACE_ATOM_10);
}
}