當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。