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


PHP Zend_Feed_Reader::reset方法代码示例

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


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

示例1: setup

 public function setup()
 {
     Zend_Feed_Reader::reset();
     if (Zend_Registry::isRegistered('Zend_Locale')) {
         $registry = Zend_Registry::getInstance();
         unset($registry['Zend_Locale']);
     }
     $this->_feedSamplePath = dirname(__FILE__) . '/_files/Common';
 }
开发者ID:sasezaki,项目名称:mirror-zf1-tests,代码行数:9,代码来源:CommonTest.php

示例2: setup

 public function setup()
 {
     Zend_Feed_Reader::reset();
     $this->_feedSamplePath = dirname(__FILE__) . '/_files/h-online.com-atom10.xml';
     $this->_options = Zend_Date::setOptions();
     foreach ($this->_options as $k => $v) {
         if (is_null($v)) {
             unset($this->_options[$k]);
         }
     }
     Zend_Date::setOptions(array('format_type' => 'iso'));
 }
开发者ID:sasezaki,项目名称:mirror-zf1-tests,代码行数:12,代码来源:H-OnlineComAtom10Test.php

示例3: setup

 public function setup()
 {
     Zend_Feed_Reader::reset();
     if (Zend_Registry::isRegistered('Zend_Locale')) {
         $registry = Zend_Registry::getInstance();
         unset($registry['Zend_Locale']);
     }
     $this->_feedSamplePath = dirname(__FILE__) . '/_files/AtomSource';
     $this->_options = Zend_Date::setOptions();
     foreach ($this->_options as $k => $v) {
         if (is_null($v)) {
             unset($this->_options[$k]);
         }
     }
     Zend_Date::setOptions(array('format_type' => 'iso'));
     $this->_expectedCats = array(array('term' => 'topic1', 'scheme' => 'http://example.com/schema1', 'label' => 'topic1'), array('term' => 'topic1', 'scheme' => 'http://example.com/schema2', 'label' => 'topic1'), array('term' => 'cat_dog', 'scheme' => 'http://example.com/schema1', 'label' => 'Cat & Dog'));
     $this->_expectedCatsDc = array(array('term' => 'topic1', 'scheme' => null, 'label' => 'topic1'), array('term' => 'topic2', 'scheme' => null, 'label' => 'topic2'));
 }
开发者ID:crodriguezn,项目名称:crossfit-milagro,代码行数:18,代码来源:AtomSourceTest.php

示例4: tearDown

 public function tearDown()
 {
     Zend_Feed_Reader::reset();
 }
开发者ID:SustainableCoastlines,项目名称:loveyourwater,代码行数:4,代码来源:ReaderTest.php

示例5: setup

 public function setup()
 {
     Zend_Feed_Reader::reset();
     $this->_feedSamplePath = dirname(__FILE__) . '/_files/wordpress-rss2-dc-atom.xml';
 }
开发者ID:SustainableCoastlines,项目名称:loveyourwater,代码行数:5,代码来源:WordpressRss2DcAtomTest.php

示例6: _processResources

 private static function _processResources(array $config)
 {
     if (self::$_lock) {
         /**
          * @see Conjoon_Log
          */
         require_once 'Conjoon/Log.php';
         Conjoon_Log::log("Conjoon_Modules_Groupware_Feeds_ImportHelper::_processResources " . "- possible race condition", Zend_Log::INFO);
     }
     self::$_lock = true;
     $uri = $config['uri'];
     $requestTimeout = $config['requestTimeout'];
     $useCache = $config['useCache'];
     $useConditionalGet = $config['useConditionalGet'];
     $callback = $config['callback'];
     /**
      * @see Zend_Feed_Reader
      */
     require_once 'Zend/Feed/Reader.php';
     if ($useCache !== false) {
         // set the reader's cache here
         /**
          * @see Conjoon_Cache_Factory
          */
         require_once 'Conjoon/Cache/Factory.php';
         /**
          * @see Conjoon_Keys
          */
         require_once 'Conjoon/Keys.php';
         $frCache = Conjoon_Cache_Factory::getCache(Conjoon_Keys::CACHE_FEED_READER, Zend_Registry::get(Conjoon_Keys::REGISTRY_CONFIG_OBJECT)->toArray());
         if ($frCache) {
             Zend_Feed_Reader::setCache($frCache);
             if ($useConditionalGet !== false) {
                 Zend_Feed_Reader::useHttpConditionalGet();
             }
         }
     }
     Zend_Feed_Reader::getHttpClient()->setConfig(array('timeout' => $requestTimeout));
     $result = self::$callback($uri);
     Zend_Feed_Reader::reset();
     self::$_lock = false;
     return $result;
 }
开发者ID:ThorstenSuckow,项目名称:conjoon,代码行数:43,代码来源:ImportHelper.php


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