MediaWiki master
MediaWiki\Deferred\MessageCacheUpdate Class Reference

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

Inherits MediaWiki\Deferred\DeferrableUpdate, and MediaWiki\Deferred\MergeableUpdate.

Collaboration diagram for MediaWiki\Deferred\MessageCacheUpdate:

Public Member Functions

 __construct ( $code, $title, $msg)
 
 doUpdate ()
 Perform the actual work.
 
 merge (MergeableUpdate $update)
 Merge this enqueued update with a new MergeableUpdate of the same qualified class name.
 

Detailed Description

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

Since
1.32

Definition at line 34 of file MessageCacheUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Deferred\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 43 of file MessageCacheUpdate.php.

Member Function Documentation

◆ doUpdate()

MediaWiki\Deferred\MessageCacheUpdate::doUpdate ( )

Perform the actual work.

Implements MediaWiki\Deferred\DeferrableUpdate.

Definition at line 57 of file MessageCacheUpdate.php.

References MediaWiki\MediaWikiServices\getInstance().

◆ merge()

MediaWiki\Deferred\MessageCacheUpdate::merge ( MergeableUpdate $update)

Merge this enqueued update with a new MergeableUpdate of the same qualified class name.

Parameters
MergeableUpdate$updateThe new update (having the same class)

Implements MediaWiki\Deferred\MergeableUpdate.

Definition at line 47 of file MessageCacheUpdate.php.


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