MediaWiki REL1_32
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 31 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 40 of file MessageCacheUpdate.php.

References $code, and $title.

Member Function Documentation

◆ doUpdate()

MessageCacheUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 53 of file MessageCacheUpdate.php.

References $code, $replacements, and as.

◆ merge()

MessageCacheUpdate::merge ( MergeableUpdate  $update)

Merge this update with $update.

Parameters
MergeableUpdate$updateUpdate of the same class type

Implements MergeableUpdate.

Definition at line 44 of file MessageCacheUpdate.php.

References $code, $messages, and as.

Member Data Documentation

◆ $replacements

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

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

Definition at line 33 of file MessageCacheUpdate.php.

Referenced by doUpdate().


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