You are here

protected function Atom::registerNamespaces in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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

Atom

Namespace

Zend\Feed\Reader\Feed

Code

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);
  }
}