MediaWiki  master
JSONRCFeedFormatter.php
Go to the documentation of this file.
1 <?php
2 
33 
34  protected function formatArray( array $packet ) {
35  return FormatJson::encode( $packet );
36  }
37 }
static encode( $value, $pretty=false, $escaping=0)
Returns the JSON representation of a value.
Definition: FormatJson.php:96
Format a recent change notification using JSON (https://www.json.org).
formatArray(array $packet)
Take the packet and return the formatted string.
Abstract class so there can be multiple formatters outputting the same data.