MediaWiki  1.32.5
JSONRCFeedFormatter Class Reference

Formats a notification into the JSON format (http://www.json.org) More...

Inheritance diagram for JSONRCFeedFormatter:
Collaboration diagram for JSONRCFeedFormatter:

Protected Member Functions

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

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. More...
 

Detailed Description

Formats a notification into the JSON format (http://www.json.org)

Since
1.22

Definition at line 27 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 29 of file JSONRCFeedFormatter.php.

References FormatJson\encode().


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