MediaWiki REL1_35
MessageCacheUpdate Class Reference

Message cache purging and in-place update handler for specific message page changes. More...

Inheritance diagram for MessageCacheUpdate:
Collaboration diagram for MessageCacheUpdate:

Public Member Functions

 __construct ( $code, $title, $msg)
 
 doUpdate ()
 Perform the actual work.
 
 merge (MergeableUpdate $update)
 Merge this update with $update.
 

Private Attributes

array[] $replacements = []
 Map of (language code => list of (DB key, DB key without code))
 

Detailed Description

Message cache purging and in-place update handler for specific message page changes.

Since
1.32

Definition at line 32 of file MessageCacheUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

MessageCacheUpdate::__construct (   $code,
  $title,
  $msg 
)
Parameters
string$codeLanguage code
string$titleMessage cache key with initial uppercase letter
string$msgMessage cache key with initial uppercase letter and without the code

Definition at line 41 of file MessageCacheUpdate.php.

References $title.

Member Function Documentation

◆ doUpdate()

MessageCacheUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 55 of file MessageCacheUpdate.php.

References $replacements.

◆ merge()

MessageCacheUpdate::merge ( MergeableUpdate  $update)

Merge this update with $update.

Parameters
MergeableUpdate$updateUpdate of the same class type

Implements MergeableUpdate.

Definition at line 45 of file MessageCacheUpdate.php.

Member Data Documentation

◆ $replacements

array [] MessageCacheUpdate::$replacements = []
private

Map of (language code => list of (DB key, DB key without code))

Definition at line 34 of file MessageCacheUpdate.php.

Referenced by doUpdate().


The documentation for this class was generated from the following file: