MediaWiki
master
XMLRCFeedFormatter.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\RCFeed
;
22
23
use
MediaWiki\Api\ApiFormatXml
;
24
29
class
XMLRCFeedFormatter
extends
MachineReadableRCFeedFormatter
{
30
31
protected
function
formatArray
( array $packet ) {
32
return
ApiFormatXml::recXmlPrint
(
'recentchange'
, $packet, 0 );
33
}
34
}
36
class_alias( XMLRCFeedFormatter::class,
'XMLRCFeedFormatter'
);
MediaWiki\Api\ApiFormatXml
API XML output formatter.
Definition
ApiFormatXml.php:33
MediaWiki\Api\ApiFormatXml\recXmlPrint
static recXmlPrint( $name, $value, $indent, $attributes=[])
This method takes an array and converts it to XML.
Definition
ApiFormatXml.php:102
MediaWiki\RCFeed\MachineReadableRCFeedFormatter
Abstract class so there can be multiple formatters outputting the same data.
Definition
MachineReadableRCFeedFormatter.php:35
MediaWiki\RCFeed\XMLRCFeedFormatter
Definition
XMLRCFeedFormatter.php:29
MediaWiki\RCFeed\XMLRCFeedFormatter\formatArray
formatArray(array $packet)
Take the packet and return the formatted string.
Definition
XMLRCFeedFormatter.php:31
MediaWiki\RCFeed
Definition
FormattedRCFeed.php:21
includes
recentchanges
RCFeed
XMLRCFeedFormatter.php
Generated on Fri Dec 13 2024 20:25:16 for MediaWiki by
1.10.0