Page MenuHomeWickedGov Phorge

JSONRCFeedFormatter.php
No OneTemporary

Size
690 B
Referenced Files
None
Subscribers
None

JSONRCFeedFormatter.php

<?php
/**
* @license GPL-2.0-or-later
* @file
*/
namespace MediaWiki\RCFeed;
use MediaWiki\Json\FormatJson;
/**
* Format a recent change notification using JSON (https://www.json.org).
*
* Parameters:
* - `channel`: If set, a 'channel' property with the same value will
* also be added to the JSON-formatted message.
*
* @see $wgRCFeeds
* @since 1.22
* @ingroup RecentChanges
*/
class JSONRCFeedFormatter extends MachineReadableRCFeedFormatter {
/** @inheritDoc */
protected function formatArray( array $packet ) {
return FormatJson::encode( $packet );
}
}
/** @deprecated class alias since 1.43 */
class_alias( JSONRCFeedFormatter::class, 'JSONRCFeedFormatter' );

File Metadata

Mime Type
text/x-php
Expires
Aug 14 2026, 19:43 (13 w, 6 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b7/86/3815de2dddc329c216333360632e
Default Alt Text
JSONRCFeedFormatter.php (690 B)

Event Timeline