本文整理匯總了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'));
}
示例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';
}
示例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'));
}
示例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);
}
示例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'
)
);
}
示例6: setup
public function setup()
{
Reader\Reader::reset();
$this->feedSamplePath = dirname(__FILE__) . '/_files/h-online.com-atom10.xml';
}
示例7: tearDown
public function tearDown()
{
Reader\Reader::reset();
}
示例8: setup
public function setup()
{
Reader\Reader::reset();
$this->_feedSamplePath = dirname(__FILE__) . '/_files/Common';
}