MediaWiki
REL1_32
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
}
JSONRCFeedFormatter
Formats a notification into the JSON format (http://www.json.org)
Definition
JSONRCFeedFormatter.php:27
JSONRCFeedFormatter\formatArray
formatArray(array $packet)
Take the packet and return the formatted string.
Definition
JSONRCFeedFormatter.php:29
MachineReadableRCFeedFormatter
Abstract class so there can be multiple formatters outputting the same data.
Definition
MachineReadableRCFeedFormatter.php:27
array
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
includes
rcfeed
JSONRCFeedFormatter.php
Generated on Mon Nov 25 2024 15:57:31 for MediaWiki by
1.10.0