MediaWiki master
XMLRCFeedFormatter.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\RCFeed;
22
23use ApiFormatXml;
24
29
30 protected function formatArray( array $packet ) {
31 return ApiFormatXml::recXmlPrint( 'recentchange', $packet, 0 );
32 }
33}
35class_alias( XMLRCFeedFormatter::class, 'XMLRCFeedFormatter' );
API XML output formatter.
static recXmlPrint( $name, $value, $indent, $attributes=[])
This method takes an array and converts it to XML.
Abstract class so there can be multiple formatters outputting the same data.
formatArray(array $packet)
Take the packet and return the formatted string.