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


PHP Zend_Feed_Reader_FeedAbstract类代码示例

本文整理汇总了PHP中Zend_Feed_Reader_FeedAbstract的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Feed_Reader_FeedAbstract类的具体用法?PHP Zend_Feed_Reader_FeedAbstract怎么用?PHP Zend_Feed_Reader_FeedAbstract使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: _checkPubsubEnabled

 protected function _checkPubsubEnabled(Zend_Feed_Reader_FeedAbstract $feed)
 {
     if (!$feed->getHubs()) {
         return;
     }
     $hubs = $feed->getHubs();
     $sub = new Zend_Feed_Pubsubhubbub_Subscriber();
     $sub->setStorage(Doctrine_Core::getTable('Zfplanet_Model_Subscription'));
     $sub->addHubUrls($hubs);
     $sub->setTopicUrl($feed->getFeedLink());
     $sub->usePathParameter();
     $sub->setCallbackUrl($this->_getCallbackUri());
     $sub->subscribeAll();
 }
开发者ID:padraic,项目名称:ZFPlanet,代码行数:14,代码来源:BlogController.php

示例2: __construct

 /**
  * Constructor
  *
  * @param  DOMDocument $dom
  * @param  string $type
  */
 public function __construct(DomDocument $dom, $type = null)
 {
     parent::__construct($dom, $type);
     $atomClass = Zend_Feed_Reader::getPluginLoader()->getClassName('Atom_Feed');
     $this->_extensions['Atom_Feed'] = new $atomClass($dom, $this->_data['type'], $this->_xpath);
     foreach ($this->_extensions as $extension) {
         $extension->setXpathPrefix('/atom:feed');
     }
 }
开发者ID:codercv,项目名称:urbansurprisedev,代码行数:15,代码来源:Atom.php

示例3: __construct

 /**
  * Constructor
  *
  * @param  DOMDocument $dom
  * @param  string $type
  */
 public function __construct(DomDocument $dom, $type = null)
 {
     parent::__construct($dom, $type);
     $dublinCoreClass = Zend_Feed_Reader::getPluginLoader()->getClassName('DublinCore_Feed');
     $this->_extensions['DublinCore_Feed'] = new $dublinCoreClass($dom, $this->_data['type'], $this->_xpath);
     $atomClass = Zend_Feed_Reader::getPluginLoader()->getClassName('Atom_Feed');
     $this->_extensions['Atom_Feed'] = new $atomClass($dom, $this->_data['type'], $this->_xpath);
     if ($this->getType() !== Zend_Feed_Reader::TYPE_RSS_10 && $this->getType() !== Zend_Feed_Reader::TYPE_RSS_090) {
         $xpathPrefix = '/rss/channel';
     } else {
         $xpathPrefix = '/rdf:RDF/rss:channel';
     }
     foreach ($this->_extensions as $extension) {
         $extension->setXpathPrefix($xpathPrefix);
     }
 }
开发者ID:Maxlander,项目名称:shixi,代码行数:22,代码来源:Rss.php


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