00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 if ( !defined( 'MEDIAWIKI' ) ) {
00027
00028 require_once ( 'ApiFormatBase.php' );
00029 }
00030
00034 class ApiFormatPhp extends ApiFormatBase {
00035
00036 public function __construct( $main, $format ) {
00037 parent :: __construct( $main, $format );
00038 }
00039
00040 public function getMimeType() {
00041 return 'application/vnd.php.serialized';
00042 }
00043
00044 public function execute() {
00045 $this->printText( serialize( $this->getResultData() ) );
00046 }
00047
00048 public function getDescription() {
00049 return 'Output data in serialized PHP format' . parent :: getDescription();
00050 }
00051
00052 public function getVersion() {
00053 return __CLASS__ . ': $Id: ApiFormatPhp.php 60930 2010-01-11 15:55:52Z simetrical $';
00054 }
00055 }