MediaWiki  REL1_22
ApiFormatPhp.php
Go to the documentation of this file.
00001 <?php
00031 class ApiFormatPhp extends ApiFormatBase {
00032 
00033     public function getMimeType() {
00034         return 'application/vnd.php.serialized';
00035     }
00036 
00037     public function execute() {
00038         $this->printText( serialize( $this->getResultData() ) );
00039     }
00040 
00041     public function getDescription() {
00042         return 'Output data in serialized PHP format' . parent::getDescription();
00043     }
00044 }