MediaWiki  REL1_19
ApiFormatPhp.php
Go to the documentation of this file.
00001 <?php
00031 class ApiFormatPhp extends ApiFormatBase {
00032 
00033         public function __construct( $main, $format ) {
00034                 parent::__construct( $main, $format );
00035         }
00036 
00037         public function getMimeType() {
00038                 return 'application/vnd.php.serialized';
00039         }
00040 
00041         public function execute() {
00042                 $this->printText( serialize( $this->getResultData() ) );
00043         }
00044 
00045         public function getDescription() {
00046                 return 'Output data in serialized PHP format' . parent::getDescription();
00047         }
00048 
00049         public function getVersion() {
00050                 return __CLASS__ . ': $Id$';
00051         }
00052 }