MediaWiki  REL1_19
PatrolLogFormatter Class Reference

This class formats patrol log entries. More...

Inheritance diagram for PatrolLogFormatter:
Collaboration diagram for PatrolLogFormatter:

List of all members.

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 patrol log entries.

Since:
1.19

Definition at line 610 of file LogFormatter.php.


Member Function Documentation

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 611 of file LogFormatter.php.

References getMessageParameters().

Here is the call graph for this function:

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 620 of file LogFormatter.php.

References Linker\link(), and Message\rawParam().

Referenced by getMessageKey().

Here is the call graph for this function:

Here is the caller graph for this function:


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