本文整理汇总了PHP中Zend_Locale_Data::removeCache方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Locale_Data::removeCache方法的具体用法?PHP Zend_Locale_Data::removeCache怎么用?PHP Zend_Locale_Data::removeCache使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Locale_Data
的用法示例。
在下文中一共展示了Zend_Locale_Data::removeCache方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup
public function setup()
{
if (Zend_Registry::isRegistered('Zend_Locale')) {
$registry = Zend_Registry::getInstance();
unset($registry['Zend_Locale']);
}
Zend_Locale_Data::removeCache();
$this->_locale = setlocale(LC_ALL, 0);
setlocale(LC_ALL, 'de');
}
示例2: tearDown
/**
* teardown / cleanup
*/
public function tearDown()
{
// if the setlocale option is enabled, then don't change the setlocale below
if (defined('TESTS_ZEND_LOCALE_FORMAT_SETLOCALE') && TESTS_ZEND_LOCALE_FORMAT_SETLOCALE === false) {
// I'm anticipating possible platform inconsistencies, so I'm leaving some debug comments for now.
//echo '<<<', setlocale(LC_NUMERIC, '0'); // show locale before changing
setlocale(LC_ALL, 'C');
// attempt to restore global setting i.e. test teardown
//echo '>>>', setlocale(LC_NUMERIC, '0'); // show locale after changing
//echo "\n";
} else {
if (defined('TESTS_ZEND_LOCALE_FORMAT_SETLOCALE')) {
setlocale(LC_ALL, TESTS_ZEND_LOCALE_FORMAT_SETLOCALE);
}
}
Zend_Locale_Data::removeCache();
}
示例3: removeCache
/**
* Removes any set cache
*
* @return void
*/
public static function removeCache()
{
Zend_Locale_Data::removeCache();
}
示例4: removeCache
/**
* Removes any set cache
*
* @return void
*/
public static function removeCache()
{
require_once 'Zend/Locale/Data.php';
Zend_Locale_Data::removeCache();
}
示例5: removeCache
/**
* Removes any set cache
*
* @return void
*/
public static function removeCache()
{
require_once PHP_LIBRARY_PATH . 'Zend/Locale/Data.php';
Zend_Locale_Data::removeCache();
}