MediaWiki REL1_34
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.
 

Detailed Description

Interface for RC feed formatters.

Since
1.22

Definition at line 27 of file RCFeedFormatter.php.

Member Function Documentation

◆ getLine()

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

Formats the line to be sent by an engine.

Parameters
array$feedThe feed, as configured in an associative array.
RecentChange$rcThe RecentChange object showing what sort of event has taken place.
string | null$actionComment
Returns
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: