MediaWiki
REL1_33
XMLRCFeedFormatter.php
Go to the documentation of this file.
1
<?php
24
class
XMLRCFeedFormatter
extends
MachineReadableRCFeedFormatter
{
25
26
protected
function
formatArray
(
array
$packet ) {
27
return
ApiFormatXml::recXmlPrint
(
'recentchange'
, $packet, 0 );
28
}
29
}
ApiFormatXml\recXmlPrint
static recXmlPrint( $name, $value, $indent, $attributes=[])
This method takes an array and converts it to XML.
Definition
ApiFormatXml.php:92
MachineReadableRCFeedFormatter
Abstract class so there can be multiple formatters outputting the same data.
Definition
MachineReadableRCFeedFormatter.php:27
XMLRCFeedFormatter
Definition
XMLRCFeedFormatter.php:24
XMLRCFeedFormatter\formatArray
formatArray(array $packet)
Take the packet and return the formatted string.
Definition
XMLRCFeedFormatter.php:26
array
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
includes
rcfeed
XMLRCFeedFormatter.php
Generated on Mon Nov 25 2024 15:49:51 for MediaWiki by
1.10.0