本文整理汇总了PHP中MShop_Factory::setCache方法的典型用法代码示例。如果您正苦于以下问题:PHP MShop_Factory::setCache方法的具体用法?PHP MShop_Factory::setCache怎么用?PHP MShop_Factory::setCache使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MShop_Factory
的用法示例。
在下文中一共展示了MShop_Factory::setCache方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bootstrap
public static function bootstrap()
{
set_error_handler('TestHelper::errorHandler');
self::_getArcavias();
MShop_Factory::setCache(false);
Controller_ExtJS_Factory::setCache(false);
}
示例2: tearDown
protected function tearDown()
{
MShop_Factory::clear();
MShop_Factory::setCache(false);
Controller_Frontend_Basket_Factory::createController($this->_context)->clear();
unset($this->_object);
}
示例3: tearDown
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
*/
protected function tearDown()
{
MShop_Factory::setCache(false);
MShop_Factory::clear();
$this->_object = null;
if (file_exists('tmp/import.zip')) {
unlink('tmp/import.zip');
}
}
示例4: testClearSpecific
public function testClearSpecific()
{
$cache = MShop_Factory::setCache(true);
$context = TestHelper::getContext();
$managerA1 = MShop_Factory::createManager($context, 'attribute');
$managerB1 = MShop_Factory::createManager($context, 'attribute/list/type');
MShop_Factory::clear((string) $context, 'attribute');
$managerA2 = MShop_Factory::createManager($context, 'attribute');
$managerB2 = MShop_Factory::createManager($context, 'attribute/list/type');
MShop_Factory::setCache($cache);
$this->assertNotSame($managerA1, $managerA2);
$this->assertSame($managerB1, $managerB2);
}
示例5: bootstrap
public static function bootstrap()
{
self::getArcavias();
MShop_Factory::setCache(false);
}
示例6: bootstrap
public static function bootstrap()
{
self::_getArcavias();
MShop_Factory::setCache(false);
Controller_Frontend_Factory::setCache(false);
}
示例7: tearDown
protected function tearDown()
{
MShop_Factory::setCache(false);
MShop_Factory::clear();
}
示例8: tearDown
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
*/
protected function tearDown()
{
MShop_Factory::setCache(false);
MShop_Factory::clear();
$this->_object = null;
}