MediaWiki
REL1_40
JSONRCFeedFormatter.php
Go to the documentation of this file.
1
<?php
2
32
class
JSONRCFeedFormatter
extends
MachineReadableRCFeedFormatter
{
33
34
protected
function
formatArray
( array $packet ) {
35
return
FormatJson::encode( $packet );
36
}
37
}
JSONRCFeedFormatter
Format a recent change notification using JSON (https://www.json.org).
Definition
JSONRCFeedFormatter.php:32
JSONRCFeedFormatter\formatArray
formatArray(array $packet)
Take the packet and return the formatted string.
Definition
JSONRCFeedFormatter.php:34
MachineReadableRCFeedFormatter
Abstract class so there can be multiple formatters outputting the same data.
Definition
MachineReadableRCFeedFormatter.php:31
includes
rcfeed
JSONRCFeedFormatter.php
Generated on Thu Jun 27 2024 14:03:49 for MediaWiki by
1.10.0