MediaWiki
master
XMLRCFeedFormatter.php
Go to the documentation of this file.
1
<?php
21
use
MediaWiki\RCFeed\MachineReadableRCFeedFormatter
;
22
26
class
XMLRCFeedFormatter
extends
MachineReadableRCFeedFormatter
{
27
28
protected
function
formatArray
( array $packet ) {
29
return
ApiFormatXml::recXmlPrint
(
'recentchange'
, $packet, 0 );
30
}
31
}
ApiFormatXml\recXmlPrint
static recXmlPrint( $name, $value, $indent, $attributes=[])
This method takes an array and converts it to XML.
Definition
ApiFormatXml.php:96
MediaWiki\RCFeed\MachineReadableRCFeedFormatter
Abstract class so there can be multiple formatters outputting the same data.
Definition
MachineReadableRCFeedFormatter.php:34
XMLRCFeedFormatter
Definition
XMLRCFeedFormatter.php:26
XMLRCFeedFormatter\formatArray
formatArray(array $packet)
Take the packet and return the formatted string.
Definition
XMLRCFeedFormatter.php:28
includes
rcfeed
XMLRCFeedFormatter.php
Generated on Mon May 20 2024 14:24:11 for MediaWiki by
1.10.0