MediaWiki  REL1_24
ApiFormatTxt.php
Go to the documentation of this file.
00001 <?php
00032 class ApiFormatTxt extends ApiFormatBase {
00033 
00034     public function getMimeType() {
00035         // This looks like it should be text/plain, but IE7 is so
00036         // brain-damaged it tries to parse text/plain as HTML if it
00037         // contains HTML tags. Using MIME text/text works around this bug
00038         return 'text/text';
00039     }
00040 
00041     public function execute() {
00042         $this->markDeprecated();
00043         $this->printText( print_r( $this->getResultData(), true ) );
00044     }
00045 
00046     public function getDescription() {
00047         return 'DEPRECATED! Output data in PHP\'s print_r() format' . parent::getDescription();
00048     }
00049 }