You are here

protected function Entry::registerNamespaces in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Content/Entry.php \Zend\Feed\Reader\Extension\Content\Entry::registerNamespaces()
  2. 8 vendor/zendframework/zend-feed/src/Reader/Extension/WellFormedWeb/Entry.php \Zend\Feed\Reader\Extension\WellFormedWeb\Entry::registerNamespaces()
  3. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php \Zend\Feed\Reader\Extension\Atom\Entry::registerNamespaces()
  4. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php \Zend\Feed\Reader\Extension\Podcast\Entry::registerNamespaces()
  5. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Thread/Entry.php \Zend\Feed\Reader\Extension\Thread\Entry::registerNamespaces()
  6. 8 vendor/zendframework/zend-feed/src/Reader/Extension/Slash/Entry.php \Zend\Feed\Reader\Extension\Slash\Entry::registerNamespaces()
  7. 8 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Entry.php \Zend\Feed\Reader\Extension\DublinCore\Entry::registerNamespaces()
  8. 8 vendor/zendframework/zend-feed/src/Reader/Extension/CreativeCommons/Entry.php \Zend\Feed\Reader\Extension\CreativeCommons\Entry::registerNamespaces()
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php \Zend\Feed\Reader\Extension\Atom\Entry::registerNamespaces()

Register the default namespaces for the current feed format

File

vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php, line 603

Class

Entry

Namespace

Zend\Feed\Reader\Extension\Atom

Code

protected function registerNamespaces() {
  switch ($this
    ->getAtomType()) {
    case Reader\Reader::TYPE_ATOM_03:
      $this
        ->getXpath()
        ->registerNamespace('atom', Reader\Reader::NAMESPACE_ATOM_03);
      break;
    default:
      $this
        ->getXpath()
        ->registerNamespace('atom', Reader\Reader::NAMESPACE_ATOM_10);
      break;
  }
}