MediaWiki master
MediaWiki\RCFeed\JSONRCFeedFormatter Class Reference

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

Inherits MediaWiki\RCFeed\MachineReadableRCFeedFormatter.

Collaboration diagram for MediaWiki\RCFeed\JSONRCFeedFormatter:

Protected Member Functions

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

Additional Inherited Members

- Public Member Functions inherited from MediaWiki\RCFeed\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 37 of file JSONRCFeedFormatter.php.

Member Function Documentation

◆ formatArray()

MediaWiki\RCFeed\JSONRCFeedFormatter::formatArray ( array $packet)
protected

Take the packet and return the formatted string.

Parameters
array$packet
Returns
string

Reimplemented from MediaWiki\RCFeed\MachineReadableRCFeedFormatter.

Definition at line 39 of file JSONRCFeedFormatter.php.


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