MediaWiki  master
ApiFormatXmlRsd.php
Go to the documentation of this file.
1 <?php
2 
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 }
API XML output formatter.
setRootElement( $rootElemName)
static recXmlPrint( $name, $value, $indent, $attributes=[])
__construct(ApiMain $main, $format)
This is the main API class, used for both external and internal processing.
Definition: ApiMain.php:42