MediaWiki  master
JSONRCFeedFormatter.php
Go to the documentation of this file.
1 <?php
2 
28 
29  protected function formatArray( array $packet ) {
30  return FormatJson::encode( $packet );
31  }
32 }
static encode( $value, $pretty=false, $escaping=0)
Returns the JSON representation of a value.
Definition: FormatJson.php:115
Abstract class so there can be multiple formatters outputting the same data.
Formats a notification into the JSON format (http://www.json.org)
formatArray(array $packet)