MediaWiki  master
Go to the documentation of this file.
1 <?php
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 (
formatArray(array $packet)
Take the packet and return the formatted string.
Abstract class so there can be multiple formatters outputting the same data.