MediaWiki  REL1_24
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 user 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 user provided comment.

Returns:
string HTML

Reimplemented from LogFormatter.

Definition at line 48 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 Array of titles that should be preloaded with LinkBatch

Reimplemented from LogFormatter.

Definition at line 59 of file NewUsersLogFormatter.php.

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


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