MediaWiki master
MediaWiki\RCFeed\MachineReadableRCFeedFormatter Class Reference

Abstract class so there can be multiple formatters outputting the same data. More...

Inherits MediaWiki\RCFeed\RCFeedFormatter.

Inherited by MediaWiki\RCFeed\JSONRCFeedFormatter, and MediaWiki\RCFeed\XMLRCFeedFormatter.

Collaboration diagram for MediaWiki\RCFeed\MachineReadableRCFeedFormatter:

Public Member Functions

 getLine (array $feed, RecentChange $rc, $actionComment)
 Generates a notification that can be easily interpreted by a machine.
 

Protected Member Functions

 formatArray (array $packet)
 Take the packet and return the formatted string.
 

Detailed Description

Abstract class so there can be multiple formatters outputting the same data.

Since
1.23

Definition at line 35 of file MachineReadableRCFeedFormatter.php.

Member Function Documentation

◆ formatArray()

MediaWiki\RCFeed\MachineReadableRCFeedFormatter::formatArray ( array $packet)
abstractprotected

Take the packet and return the formatted string.

Parameters
array$packet
Returns
string

Reimplemented in MediaWiki\RCFeed\JSONRCFeedFormatter, and MediaWiki\RCFeed\XMLRCFeedFormatter.

Referenced by MediaWiki\RCFeed\MachineReadableRCFeedFormatter\getLine().

◆ getLine()

MediaWiki\RCFeed\MachineReadableRCFeedFormatter::getLine ( array $feed,
RecentChange $rc,
$actionComment )

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