Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4024431
JSONRCFeedFormatter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
690 B
Referenced Files
None
Subscribers
None
JSONRCFeedFormatter.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment