MediaWiki master
RCFeedFormatter Interface Reference

Interface for RC feed formatters. More...

Inherited by IRCColourfulRCFeedFormatter, and MachineReadableRCFeedFormatter.

Public Member Functions

 getLine (array $feed, RecentChange $rc, $actionComment)
 Formats the line to be sent by an engine.

Detailed Description

Interface for RC feed formatters.

Stability: stable
to implement

Definition at line 28 of file RCFeedFormatter.php.

Member Function Documentation

◆ getLine()

RCFeedFormatter::getLine ( array  $feed,
RecentChange  $rc,

Formats the line to be sent by an engine.

array$feedThe feed, as configured in an associative array.
RecentChange$rcThe RecentChange object showing what sort of event has taken place.
string | null$actionComment
string|null The text to send. If the formatter returns null, the line will not be sent.

Implemented in IRCColourfulRCFeedFormatter, and MachineReadableRCFeedFormatter.

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