You are here

protected function AbstractFeed::loadExtensions in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php \Zend\Feed\Reader\AbstractFeed::loadExtensions()
  2. 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/AbstractFeed.php \Zend\Feed\Reader\Feed\AbstractFeed::loadExtensions()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php \Zend\Feed\Reader\AbstractFeed::loadExtensions()
1 call to AbstractFeed::loadExtensions()
AbstractFeed::__construct in vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php
Constructor

File

vendor/zendframework/zend-feed/src/Reader/AbstractFeed.php, line 272

Class

AbstractFeed

Namespace

Zend\Feed\Reader

Code

protected function loadExtensions() {
  $all = Reader::getExtensions();
  $manager = Reader::getExtensionManager();
  $feed = $all['feed'];
  foreach ($feed as $extension) {
    if (in_array($extension, $all['core'])) {
      continue;
    }
    $plugin = $manager
      ->get($extension);
    $plugin
      ->setDomDocument($this
      ->getDomDocument());
    $plugin
      ->setType($this->data['type']);
    $plugin
      ->setXpath($this->xpath);
    $this->extensions[$extension] = $plugin;
  }
}