コード例 #1
0
 public function testGetLocale()
 {
     $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
     \Zend_Locale_Data::removeCache();
     $this->assertNull(\Zend_Locale_Data::getCache());
     $model = $objectManager->create('Magento\\Framework\\Locale\\ResolverInterface', ['locale' => 'some_locale']);
     $this->assertInstanceOf('Zend_Locale', $model->getLocale());
     $this->assertInstanceOf('Zend_Cache_Core', \Zend_Locale_Data::getCache());
 }
コード例 #2
0
 /**
  * Returns the set cache
  *
  * @return Zend_Cache_Core The set cache
  */
 public static function getCache()
 {
     return Zend_Locale_Data::getCache();
 }
コード例 #3
0
ファイル: Locale.php プロジェクト: bizanto/Hooked
 /**
  * Returns the set cache
  *
  * @return Zend_Cache_Core The set cache
  */
 public static function getCache()
 {
     require_once 'Zend/Locale/Data.php';
     return Zend_Locale_Data::getCache();
 }
コード例 #4
0
ファイル: Currency.php プロジェクト: quangbt2005/vhost-kis
 /**
  * Returns the set cache
  *
  * @return Zend_Cache_Core The set cache
  */
 public static function getCache()
 {
     $cache = Zend_Locale_Data::getCache();
     return $cache;
 }
コード例 #5
0
ファイル: CacheTest.php プロジェクト: Tony133/zf-web
 public function testShareCacheToZendObjects()
 {
     $resource = new Zend_Application_Resource_Cache(array('frontend' => array('class' => 'core'), 'backend' => array('class' => 'file'), 'sharetozendobjects' => null));
     $cache = $resource->init();
     $this->assertEquals($cache, Zend_Translate::getCache());
     /**
      * @todo Zend_Paginator::getCache() missing
      * $this->assertEquals($cache, Zend_Paginator::getCache());
      */
     $this->assertEquals($cache, Zend_Locale::getCache());
     $this->assertEquals($cache, Zend_Db_Table::getDefaultMetadataCache());
     $this->assertEquals($cache, Zend_Locale_Data::getCache());
 }
コード例 #6
0
ファイル: Locale.php プロジェクト: netixx/Stock
 /**
  * Returns the set cache
  *
  * @return Zend_Cache_Core The set cache
  */
 public static function getCache()
 {
     require_once PHP_LIBRARY_PATH . 'Zend/Locale/Data.php';
     return Zend_Locale_Data::getCache();
 }
コード例 #7
0
ファイル: Locale.php プロジェクト: netvlies/zf
 /**
  * Returns the set cache
  *
  * @return Zend_Cache_Core The set cache
  */
 public static function getCache()
 {
     // require_once 'Zend/Locale/Data.php';
     $cache = Zend_Locale_Data::getCache();
     return $cache;
 }