本文整理匯總了PHP中oxUtilsObject::resetModuleVars方法的典型用法代碼示例。如果您正苦於以下問題:PHP oxUtilsObject::resetModuleVars方法的具體用法?PHP oxUtilsObject::resetModuleVars怎麽用?PHP oxUtilsObject::resetModuleVars使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類oxUtilsObject
的用法示例。
在下文中一共展示了oxUtilsObject::resetModuleVars方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tearDown
/**
* Executed after test is down
*
*/
protected function tearDown()
{
//TS2012-06-06
//deprecated method call
//overrideGetShopBasePath(null);
oxTestsStaticCleaner::clean('oxSeoEncoder', '_instance');
oxTestsStaticCleaner::clean('oxSeoEncoderArticle', '_instance');
oxTestsStaticCleaner::clean('oxSeoEncoderCategory', '_instance');
oxTestsStaticCleaner::clean('oxVatSelector', '_instance');
oxTestsStaticCleaner::clean('oxDiscountList', '_instance');
oxTestsStaticCleaner::clean('oxUtilsObject', '_aInstanceCache');
oxTestsStaticCleaner::clean('oxArticle', '_aLoadedParents');
modInstances::cleanup();
oxTestModules::cleanUp();
modOxid::globalCleanup();
modDB::getInstance()->cleanup();
$this->getSession()->cleanup();
$this->getConfig()->cleanup();
$_SERVER = $this->_aBackup['_SERVER'];
$_POST = $this->_aBackup['_POST'];
$_GET = $this->_aBackup['_GET'];
$_SESSION = $this->_aBackup['_SESSION'];
$_COOKIE = $this->_aBackup['_COOKIE'];
$this->_resetRegistry();
oxUtilsObject::resetClassInstances();
oxUtilsObject::resetModuleVars();
parent::tearDown();
}
示例2: tearDown
/**
* Executed after test is down
*
*/
protected function tearDown()
{
$this->cleanUpDatabase();
modDb::getInstance()->modAttach(modDb::getInstance()->getRealInstance());
oxTestsStaticCleaner::clean('oxUtilsObject', '_aInstanceCache');
oxTestsStaticCleaner::clean('oxArticle', '_aLoadedParents');
modInstances::cleanup();
oxTestModules::cleanUp();
modOxid::globalCleanup();
modDB::getInstance()->cleanup();
$this->getSession()->cleanup();
$this->getConfig()->cleanup();
$_SERVER = $this->_aBackup['_SERVER'];
$_POST = $this->_aBackup['_POST'];
$_GET = $this->_aBackup['_GET'];
$_SESSION = $this->_aBackup['_SESSION'];
$_COOKIE = $this->_aBackup['_COOKIE'];
$this->_resetRegistry();
oxUtilsObject::resetClassInstances();
oxUtilsObject::resetModuleVars();
parent::tearDown();
}