MediaWiki  REL1_22
LegacyLogFormatter Class Reference

This class formats all log entries for log types which have not been converted to the new system. More...

Inheritance diagram for LegacyLogFormatter:
Collaboration diagram for LegacyLogFormatter:

List of all members.

Public Member Functions

 getActionLinks ()
 Returns extra links that comes after the action text, like "revert", etc.
 getComment ()
 Gets the luser provided comment.

Protected Member Functions

 getActionMessage ()
 Returns a sentence describing the log action.

Private Attributes

string null $comment = null
 Backward compatibility for extension changing the comment from the LogLine hook.
string null $revert = null
 Cache for the result of getActionLinks() so that it does not need to run multiple times depending on the order that getComment() and getActionLinks() are called.

Detailed Description

This class formats all log entries for log types which have not been converted to the new system.

This is not about old log entries which store parameters in a different format - the new LogFormatter classes have code to support formatting those too.

Since:
1.19

Definition at line 668 of file LogFormatter.php.


Member Function Documentation

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

Returns:
string

Reimplemented from LogFormatter.

Definition at line 721 of file LogFormatter.php.

Returns a sentence describing the log action.

Usually a Message object is returned, but old style log types and entries might return pre-escaped html string.

Returns:
Message|string pre-escaped html

Reimplemented from LogFormatter.

Definition at line 702 of file LogFormatter.php.

Gets the luser provided comment.

Returns:
string HTML

Reimplemented from LogFormatter.

Definition at line 688 of file LogFormatter.php.


Member Data Documentation

string null LegacyLogFormatter::$comment = null [private]

Backward compatibility for extension changing the comment from the LogLine hook.

This will be set by the first call on getComment(), then it might be modified by the hook when calling getActionLinks(), so that the modified value will be returned when calling getComment() a second time.

Definition at line 678 of file LogFormatter.php.

string null LegacyLogFormatter::$revert = null [private]

Cache for the result of getActionLinks() so that it does not need to run multiple times depending on the order that getComment() and getActionLinks() are called.

Definition at line 686 of file LogFormatter.php.


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