MediaWiki  REL1_22
MoveLogFormatter Class Reference

This class formats move log entries. More...

Inheritance diagram for MoveLogFormatter:
Collaboration diagram for MoveLogFormatter:

List of all members.

Public Member Functions

 getActionLinks ()
 Returns extra links that comes after the action text, like "revert", etc.
 getPreloadTitles ()

Protected Member Functions

 getMessageKey ()
 Returns a key to be used for formatting the action sentence.
 getMessageParameters ()
 Formats parameters intented for action message from array of all parameters.

Detailed Description

This class formats move log entries.

Since:
1.19

Definition at line 31 of file MoveLogFormatter.php.


Member Function Documentation

Returns extra links that comes after the action text, like "revert", etc.

Returns:
string

Reimplemented from LogFormatter.

Definition at line 55 of file MoveLogFormatter.php.

References $params, $revert, array(), LogPage\DELETED_ACTION, LogFormatter\extractParameters(), SpecialPage\getTitleFor(), Linker\linkKnown(), LogFormatter\msg(), and Title\newFromText().

Returns a key to be used for formatting the action sentence.

Default is logentry-TYPE-SUBTYPE for modern logs. Legacy log types will use custom keys, and subclasses can also alter the key depending on the entry itself.

Returns:
string message key

Reimplemented from LogFormatter.

Definition at line 37 of file MoveLogFormatter.php.

References $key, $params, and getMessageParameters().

Formats parameters intented for action message from array of all parameters.

There are three hardcoded parameters (array is zero-indexed, this list not):

  • 1: user name with premade link
  • 2: usable for gender magic function
  • 3: target page with premade link
    Returns:
    array

Reimplemented from LogFormatter.

Definition at line 46 of file MoveLogFormatter.php.

References $params, array(), LogFormatter\makePageLink(), Title\newFromText(), and Message\rawParam().

Referenced by getMessageKey().

Returns:
Array of titles that should be preloaded with LinkBatch.

Reimplemented from LogFormatter.

Definition at line 32 of file MoveLogFormatter.php.

References $params, array(), LogFormatter\extractParameters(), and Title\newFromText().


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