MediaWiki
REL1_34
ApiFormatXmlRsd.php
Go to the documentation of this file.
1
<?php
2
27
class
ApiFormatXmlRsd
extends
ApiFormatXml
{
28
public
function
__construct
(
ApiMain
$main, $format ) {
29
parent::__construct( $main, $format );
30
$this->
setRootElement
(
'rsd'
);
31
}
32
33
public
function
getMimeType
() {
34
return
'application/rsd+xml'
;
35
}
36
37
public
static
function
recXmlPrint
( $name, $value, $indent, $attributes = [] ) {
38
unset( $attributes[
'_idx'
] );
39
return
parent::recXmlPrint( $name, $value, $indent, $attributes );
40
}
41
}
ApiFormatXmlRsd
Definition
ApiFormatXmlRsd.php:27
ApiFormatXmlRsd\__construct
__construct(ApiMain $main, $format)
If $format ends with 'fm', pretty-print the output in HTML.
Definition
ApiFormatXmlRsd.php:28
ApiFormatXmlRsd\recXmlPrint
static recXmlPrint( $name, $value, $indent, $attributes=[])
This method takes an array and converts it to XML.
Definition
ApiFormatXmlRsd.php:37
ApiFormatXmlRsd\getMimeType
getMimeType()
Overriding class returns the MIME type that should be sent to the client.
Definition
ApiFormatXmlRsd.php:33
ApiFormatXml
API XML output formatter.
Definition
ApiFormatXml.php:27
ApiFormatXml\setRootElement
setRootElement( $rootElemName)
Definition
ApiFormatXml.php:38
ApiMain
This is the main API class, used for both external and internal processing.
Definition
ApiMain.php:41
includes
api
ApiFormatXmlRsd.php
Generated on Fri Apr 5 2024 23:09:35 for MediaWiki by
1.9.8