Author: Derick Rethans
Date: 2006-01-25 16:21:38 +0100 (Wed, 25 Jan 2006)
New Revision: 2030
Log:
- Make the cache per-manager based and not global.
Modified:
packages/Translation/trunk/src/translation_manager.php
Modified: packages/Translation/trunk/src/translation_manager.php
===================================================================
--- packages/Translation/trunk/src/translation_manager.php 2006-01-25
15:02:23 UTC (rev 2029)
+++ packages/Translation/trunk/src/translation_manager.php 2006-01-25
15:21:38 UTC (rev 2030)
@@ -58,7 +58,7 @@
*
* @var array(string=>array(string=>ezcTranslation))
*/
- static private $contextCache;
+ private $contextCache;
/**
* Constructs an ezcTranslationManager object
@@ -99,9 +99,9 @@
*/
private function getFromCache( $locale, $context )
{
- if ( isset( self::$contextCache[$locale][$context] ) )
+ if ( isset( $this->contextCache[$locale][$context] ) )
{
- return self::$contextCache[$locale][$context];
+ return $this->contextCache[$locale][$context];
}
return null;
}
@@ -117,7 +117,7 @@
*/
private function putToCache( $locale, $contextName, ezcTranslation
$contextData )
{
- self::$contextCache[$locale][$contextName] = $contextData;
+ $this->contextCache[$locale][$contextName] = $contextData;
}
/**
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components