当前位置: 首页>>代码示例>>PHP>>正文


PHP Reader::getExtensions方法代码示例

本文整理汇总了PHP中Zend\Feed\Reader\Reader::getExtensions方法的典型用法代码示例。如果您正苦于以下问题:PHP Reader::getExtensions方法的具体用法?PHP Reader::getExtensions怎么用?PHP Reader::getExtensions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend\Feed\Reader\Reader的用法示例。


在下文中一共展示了Reader::getExtensions方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: loadExtensions

 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;
     }
 }
开发者ID:tillk,项目名称:vufind,代码行数:16,代码来源:AbstractFeed.php

示例2: _loadExtensions

 protected function _loadExtensions()
 {
     $all = Reader\Reader::getExtensions();
     $feed = $all['feed'];
     foreach ($feed as $extension) {
         if (in_array($extension, $all['core'])) {
             continue;
         }
         $className = Reader\Reader::getPluginLoader()->getClassName($extension);
         $this->_extensions[$extension] = new $className($this->getDomDocument(), $this->_data['type'], $this->_xpath);
     }
 }
开发者ID:stunti,项目名称:zf2,代码行数:12,代码来源:AbstractFeed.php

示例3: loadExtensions

 protected function loadExtensions()
 {
     $all = Reader\Reader::getExtensions();
     $manager = Reader\Reader::getExtensionManager();
     $feed = $all['feed'];
     foreach ($feed as $extension) {
         if (in_array($extension, $all['core'])) {
             continue;
         }
         if (!$manager->has($extension)) {
             throw new Exception\RuntimeException(sprintf('Unable to load extension "%s"; cannot find class', $extension));
         }
         $plugin = $manager->get($extension);
         $plugin->setDomDocument($this->getDomDocument());
         $plugin->setType($this->data['type']);
         $plugin->setXpath($this->xpath);
         $this->extensions[$extension] = $plugin;
     }
 }
开发者ID:haoyanfei,项目名称:zf2,代码行数:19,代码来源:AbstractFeed.php

示例4: _loadExtensions

 /**
  * Load extensions from Zend\Feed\Reader\Reader
  *
  * @return void
  */
 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']);
     }
 }
开发者ID:karnurik,项目名称:zf2-turtorial,代码行数:17,代码来源:AbstractEntry.php

示例5: _loadExtensions

 protected function _loadExtensions()
 {
     $all = Reader\Reader::getExtensions();
     $feed = $all['feed'];
     foreach ($feed as $extension) {
         if (in_array($extension, $all['core'])) {
             continue;
         }
         if (!($className = Reader\Reader::getPluginLoader()->getClassName($extension))) {
             continue;
         }
         if (!class_exists($className)) {
             throw new Exception\RuntimeException(sprintf('Unable to load extension "%s"; cannot find class', $extension));
         }
         $this->_extensions[$extension] = new $className($this->getDomDocument(), $this->_data['type'], $this->_xpath);
     }
 }
开发者ID:robertodormepoco,项目名称:zf2,代码行数:17,代码来源:AbstractFeed.php


注:本文中的Zend\Feed\Reader\Reader::getExtensions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。