Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
| ApiFormatXmlRsd | |
0.00% |
0 / 5 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| getMimeType | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| recXmlPrint | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Copyright © 2010 Bryan Tong Minh and Brooke Vibber |
| 5 | * |
| 6 | * @license GPL-2.0-or-later |
| 7 | * @file |
| 8 | */ |
| 9 | |
| 10 | namespace MediaWiki\Api; |
| 11 | |
| 12 | /** |
| 13 | * @ingroup API |
| 14 | */ |
| 15 | class ApiFormatXmlRsd extends ApiFormatXml { |
| 16 | public function __construct( ApiMain $main, string $format ) { |
| 17 | parent::__construct( $main, $format ); |
| 18 | $this->setRootElement( 'rsd' ); |
| 19 | } |
| 20 | |
| 21 | /** @inheritDoc */ |
| 22 | public function getMimeType() { |
| 23 | return 'application/rsd+xml'; |
| 24 | } |
| 25 | |
| 26 | /** @inheritDoc */ |
| 27 | public static function recXmlPrint( $name, $value, $indent, $attributes = [] ) { |
| 28 | unset( $attributes['_idx'] ); |
| 29 | return parent::recXmlPrint( $name, $value, $indent, $attributes ); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | /** @deprecated class alias since 1.43 */ |
| 34 | class_alias( ApiFormatXmlRsd::class, 'ApiFormatXmlRsd' ); |