Index: trunk/phase3/includes/MessageCache.php |
— | — | @@ -18,15 +18,30 @@ |
19 | 19 | * @ingroup Cache |
20 | 20 | */ |
21 | 21 | class MessageCache { |
22 | | - // Holds loaded messages that are defined in MediaWiki namespace. |
23 | | - var $mCache; |
| 22 | + /** |
| 23 | + * Process local cache of loaded messages that are defined in |
| 24 | + * MediaWiki namespace. First array level is a language code, |
| 25 | + * second level is message key and the values are either message |
| 26 | + * content prefixed with space, or !NONEXISTENT for negative |
| 27 | + * caching. |
| 28 | + */ |
| 29 | + protected $mCache; |
24 | 30 | |
25 | | - var $mDisable, $mExpiry; |
26 | | - var $mKeys, $mParserOptions, $mParser; |
| 31 | + // Should mean that database cannot be used, but check |
| 32 | + protected $mDisable; |
27 | 33 | |
28 | | - // Variable for tracking which variables are loaded |
29 | | - var $mLoadedLanguages = array(); |
| 34 | + /// Lifetime for cache, used by object caching |
| 35 | + protected $mExpiry; |
30 | 36 | |
| 37 | + /** |
| 38 | + * Message cache has it's own parser which it uses to transform |
| 39 | + * messages. |
| 40 | + */ |
| 41 | + protected $mParserOptions, $mParser; |
| 42 | + |
| 43 | + /// Variable for tracking which variables are already loaded |
| 44 | + protected $mLoadedLanguages = array(); |
| 45 | + |
31 | 46 | function __construct( $memCached, $useDB, $expiry ) { |
32 | 47 | if ( !$memCached ) { |
33 | 48 | $memCached = wfGetCache( CACHE_NONE ); |
— | — | @@ -35,9 +50,6 @@ |
36 | 51 | $this->mMemc = $memCached; |
37 | 52 | $this->mDisable = !$useDB; |
38 | 53 | $this->mExpiry = $expiry; |
39 | | - $this->mDisableTransform = false; |
40 | | - $this->mKeys = false; # initialised on demand |
41 | | - $this->mParser = null; |
42 | 54 | } |
43 | 55 | |
44 | 56 | |