MediaWiki  master
RCFeedFormatter Interface Reference

Interface for RC feed formatters. More...

Inheritance diagram for RCFeedFormatter:

Public Member Functions

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

Detailed Description

Interface for RC feed formatters.


Definition at line 27 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 MachineReadableRCFeedFormatter, and IRCColourfulRCFeedFormatter.

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