X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a:/includes/api/ApiFormatYaml.php..6932310fd58ebef145fa01eb76edf7150284d8ea:/includes/api/ApiFormatNone.php diff --git a/includes/api/ApiFormatYaml.php b/includes/api/ApiFormatNone.php similarity index 56% rename from includes/api/ApiFormatYaml.php rename to includes/api/ApiFormatNone.php index e849c465..dc623ac1 100644 --- a/includes/api/ApiFormatYaml.php +++ b/includes/api/ApiFormatNone.php @@ -1,10 +1,10 @@ @gmail.com + * Created on Oct 22, 2006 + * + * Copyright © 2006 Yuri Astrakhan "@gmail.com" * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,34 +24,16 @@ * @file */ -if ( !defined( 'MEDIAWIKI' ) ) { - // Eclipse helper - will be ignored in production - require_once( 'ApiFormatBase.php' ); -} - /** - * API YAML output formatter + * API Serialized PHP output formatter * @ingroup API */ -class ApiFormatYaml extends ApiFormatBase { - - public function __construct( $main, $format ) { - parent::__construct( $main, $format ); - } +class ApiFormatNone extends ApiFormatBase { public function getMimeType() { - return 'application/yaml'; + return 'text/plain'; } public function execute() { - $this->printText( Spyc::YAMLDump( $this->getResultData() ) ); - } - - public function getDescription() { - return 'Output data in YAML format' . parent::getDescription(); - } - - public function getVersion() { - return __CLASS__ . ': $Id$'; } }