當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Locale::disableCache方法代碼示例

本文整理匯總了PHP中Zend_Locale::disableCache方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Locale::disableCache方法的具體用法?PHP Zend_Locale::disableCache怎麽用?PHP Zend_Locale::disableCache使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Locale的用法示例。


在下文中一共展示了Zend_Locale::disableCache方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: init

 /**
  * Initialize application pre-configuration
  * - Dispatcher
  * - Request
  */
 public function init()
 {
     static::getPhpRunId();
     mb_internal_encoding('utf-8');
     self::getPhpSettings();
     if (false === static::isInCliCall()) {
         self::getSession();
     }
     self::getTimeZone();
     self::getErrorHandler();
     \Zend_Locale::disableCache(true);
 }
開發者ID:cipherpols,項目名稱:cze,代碼行數:17,代碼來源:Application.php

示例2: _setCache

 /**
  * Sets the locale cache
  *
  * @return void
  */
 protected function _setCache()
 {
     $options = $this->getOptions();
     // Disable cache? If not defined, cache will be active
     if (isset($options['cache']['active']) && !$options['cache']['active']) {
         // Zend by default creates a cache for Zend_Locale, due to performance
         // considerations. Manually disable cache to override that behaviour.
         Zend_Locale::disableCache(true);
         return;
     }
     // Get the cache using the config settings as input
     $this->_bootstrap->bootstrap('CacheManager');
     $manager = $this->_bootstrap->getResource('CacheManager');
     $cache = $manager->getCache('locale');
     // Write caching errors to log file (if activated in the config)
     $this->_bootstrap->bootstrap('Log');
     $logger = $this->_bootstrap->getResource('Log');
     $cache->setOption('logger', $logger);
     Zend_Locale::setCache($cache);
 }
開發者ID:nstapelbroek,項目名稱:Glitch_Lib,代碼行數:25,代碼來源:Locale.php

示例3: initPhpConfig

 /**
  * Initialize Data bases
  * 
  * @return void
  */
 public function initPhpConfig()
 {
     Zend_Locale::disableCache(true);
     //        Zend_Cache_Backend_File::setCacheDir('tmp');
 }
開發者ID:judasnow,項目名稱:qspread20101020,代碼行數:10,代碼來源:Initializer.php

示例4: __construct

 /**
  * Cldr constructor.
  */
 public function __construct()
 {
     \Zend_Locale::disableCache(true);
 }
開發者ID:fkomaralp,項目名稱:country-list,代碼行數:7,代碼來源:Cldr.php

示例5: _initSession

 protected function _initSession()
 {
     Zend_Session::start();
     Zend_Locale::disableCache(true);
     date_default_timezone_set('Asia/Kolkata');
 }
開發者ID:maniargaurav,項目名稱:OurBank,代碼行數:6,代碼來源:Bootstrap.php

示例6: testZendLocaleDisableCacheShouldNotOverwritten

 /**
  * @group GH-363
  */
 public function testZendLocaleDisableCacheShouldNotOverwritten()
 {
     Zend_Locale::disableCache(true);
     $value = Zend_Locale_Format::getDate('2014-01-01');
     $this->assertFalse(Zend_Locale_Data::hasCache());
 }
開發者ID:crodriguezn,項目名稱:crossfit-milagro,代碼行數:9,代碼來源:FormatTest.php


注:本文中的Zend_Locale::disableCache方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。