MediaWiki master
JSONRCFeedFormatter Class Reference

Format a recent change notification using JSON (https://www.json.org). More...

Inherits MachineReadableRCFeedFormatter.

Collaboration diagram for JSONRCFeedFormatter:

Protected Member Functions

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

Additional Inherited Members

- Public Member Functions inherited from MachineReadableRCFeedFormatter
 getLine (array $feed, RecentChange $rc, $actionComment)
 Generates a notification that can be easily interpreted by a machine.
 

Detailed Description

Format a recent change notification using JSON (https://www.json.org).

Parameters:

  • channel: If set, a 'channel' property with the same value will also be added to the JSON-formatted message.
See also
$wgRCFeeds
Since
1.22

Definition at line 32 of file JSONRCFeedFormatter.php.

Member Function Documentation

◆ formatArray()

JSONRCFeedFormatter::formatArray ( array $packet)
protected

Take the packet and return the formatted string.

Parameters
array$packet
Returns
string

Reimplemented from MachineReadableRCFeedFormatter.

Definition at line 34 of file JSONRCFeedFormatter.php.


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