MediaWiki  REL1_22
NewUsersLogFormatter Class Reference

This class formats new user log entries. More...

Inheritance diagram for NewUsersLogFormatter:
Collaboration diagram for NewUsersLogFormatter:

List of all members.

Public Member Functions

 getComment ()
 Gets the luser provided comment.
 getPreloadTitles ()

Protected Member Functions

 getMessageParameters ()
 Formats parameters intented for action message from array of all parameters.

Detailed Description

This class formats new user log entries.

Since:
1.19

Definition at line 31 of file NewUsersLogFormatter.php.


Member Function Documentation

Gets the luser provided comment.

Returns:
string HTML

Reimplemented from LogFormatter.

Definition at line 47 of file NewUsersLogFormatter.php.

References $timestamp, and wfTimestamp().

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 32 of file NewUsersLogFormatter.php.

References $params, false, LogFormatter\makeUserLink(), User\newFromId(), User\newFromName(), and Message\rawParam().

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

Reimplemented from LogFormatter.

Definition at line 57 of file NewUsersLogFormatter.php.

References array(), and Title\makeTitle().


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