You are here

protected function AbstractEntry::_loadExtensions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::_loadExtensions()

Load extensions from Zend\Feed\Reader\Reader

Return value

void

1 call to AbstractEntry::_loadExtensions()
AbstractEntry::__construct in vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php
Constructor

File

vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php, line 210

Class

AbstractEntry

Namespace

Zend\Feed\Reader

Code

protected function _loadExtensions() {
  $all = Reader::getExtensions();
  $feed = $all['entry'];
  foreach ($feed as $extension) {
    if (in_array($extension, $all['core'])) {
      continue;
    }
    $className = Reader::getPluginLoader()
      ->getClassName($extension);
    $this->extensions[$extension] = new $className($this
      ->getElement(), $this->entryKey, $this->data['type']);
  }
}