MediaWiki
master
|
Format a recent change notification using JSON (https://www.json.org). More...
Protected Member Functions | |
formatArray (array $packet) | |
Take the packet and return the formatted string. More... | |
Additional Inherited Members | |
![]() | |
getLine (array $feed, RecentChange $rc, $actionComment) | |
Generates a notification that can be easily interpreted by a machine. More... | |
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.Definition at line 32 of file JSONRCFeedFormatter.php.
|
protected |
Take the packet and return the formatted string.
array | $packet |
Reimplemented from MachineReadableRCFeedFormatter.
Definition at line 34 of file JSONRCFeedFormatter.php.
References FormatJson\encode().