MediaWiki master
MediaWiki\Language\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\Language\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.

Access: internal
For use by MessageCache only.
Since
1.32

Definition at line 37 of file MessageCacheUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Language\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 46 of file MessageCacheUpdate.php.

Member Function Documentation

◆ doUpdate()

MediaWiki\Language\MessageCacheUpdate::doUpdate ( )

Perform the actual work.

Implements MediaWiki\Deferred\DeferrableUpdate.

Definition at line 60 of file MessageCacheUpdate.php.

References MediaWiki\MediaWikiServices\getInstance().

◆ merge()

MediaWiki\Language\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 50 of file MessageCacheUpdate.php.


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