MediaWiki
1.34.0
JSONRCFeedFormatter.php
Go to the documentation of this file.
1
<?php
2
27
class
JSONRCFeedFormatter
extends
MachineReadableRCFeedFormatter
{
28
29
protected
function
formatArray
( array $packet ) {
30
return
FormatJson::encode
( $packet );
31
}
32
}
MachineReadableRCFeedFormatter
Abstract class so there can be multiple formatters outputting the same data.
Definition:
MachineReadableRCFeedFormatter.php:27
JSONRCFeedFormatter\formatArray
formatArray(array $packet)
Take the packet and return the formatted string.
Definition:
JSONRCFeedFormatter.php:29
FormatJson\encode
static encode( $value, $pretty=false, $escaping=0)
Returns the JSON representation of a value.
Definition:
FormatJson.php:115
JSONRCFeedFormatter
Formats a notification into the JSON format (http://www.json.org)
Definition:
JSONRCFeedFormatter.php:27
includes
rcfeed
JSONRCFeedFormatter.php
Generated on Thu Dec 19 2019 14:54:44 for MediaWiki by
1.8.16