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


PHP Reader::reset方法代码示例

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


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

示例1: setup

 public function setup()
 {
     Reader\Reader::reset();
     $this->feedSamplePath = dirname(__FILE__) . '/_files/Atom';
     $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:pnaq57,项目名称:zf2demo,代码行数:7,代码来源:AtomTest.php

示例2: setup

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

示例3: setup

 public function setup()
 {
     Reader\Reader::reset();
     $this->_feedSamplePath = dirname(__FILE__) . '/_files/podcast.xml';
     $this->_options = Date\Date::setOptions();
     foreach($this->_options as $k=>$v) {
         if (is_null($v)) {
             unset($this->_options[$k]);
         }
     }
     Date\Date::setOptions(array('format_type'=>'iso'));
 }
开发者ID:niallmccrudden,项目名称:zf2,代码行数:12,代码来源:PodcastRss2Test.php

示例4: setUp

 function setUp()
 {
     parent::setUp();
     // Do not delete old aggregator items during these tests, since our sample
     // feeds have hardcoded dates in them (which may be expired when this test
     // is run).
     $this->container->get('config.factory')->get('aggregator.settings')->set('items.expire', AGGREGATOR_CLEAR_NEVER)->save();
     // Reset any reader cache between tests.
     Reader::reset();
     // Set our bridge extension manager to Zend Feed.
     $bridge = $this->container->get('feed.bridge.reader');
     Reader::setExtensionManager($bridge);
 }
开发者ID:anatalsceo,项目名称:en-classe,代码行数:13,代码来源:FeedParserTest.php

示例5: setup

 public function setup()
 {
     Reader\Reader::reset();
     if (\Zend\Registry::isRegistered('Zend_Locale')) {
         $registry = \Zend\Registry::getInstance();
         unset($registry['Zend_Locale']);
     }
     $this->_feedSamplePath = dirname(__FILE__) . '/_files/AtomSource';
     $this->_options = Date\Date::setOptions();
     foreach($this->_options as $k=>$v) {
         if (is_null($v)) {
             unset($this->_options[$k]);
         }
     }
     Date\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:niallmccrudden,项目名称:zf2,代码行数:45,代码来源:AtomSourceTest.php

示例6: setup

 public function setup()
 {
     Reader\Reader::reset();
     $this->feedSamplePath = dirname(__FILE__) . '/_files/h-online.com-atom10.xml';
 }
开发者ID:rajanlamic,项目名称:IntTest,代码行数:5,代码来源:H-OnlineComAtom10Test.php

示例7: tearDown

 public function tearDown()
 {
     Reader\Reader::reset();
 }
开发者ID:bradley-holt,项目名称:zf2,代码行数:4,代码来源:ReaderTest.php

示例8: setup

 public function setup()
 {
     Reader\Reader::reset();
     $this->_feedSamplePath = dirname(__FILE__) . '/_files/Common';
 }
开发者ID:haoyanfei,项目名称:zf2,代码行数:5,代码来源:CommonTest.php


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