wiki.techinc.nl/includes/api/ApiFormatYaml.php
Brad Jorsch 3479d1f7e7 API: Fix description for YAML format
The description for format=yaml in the auto-generated docs is coming out
as "Output data in YAML formatOutput data in JSON format". That needs
fixing.

Change-Id: I20185fba6b70cc995a41eb6f42565da4cc7c338d
2012-11-28 11:41:52 -05:00

44 lines
1.2 KiB
PHP

<?php
/**
*
*
* Created on Sep 19, 2006
*
* Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
*/
/**
* API YAML output formatter
* @ingroup API
*/
class ApiFormatYaml extends ApiFormatJson {
public function getMimeType() {
return 'application/yaml';
}
public function getDescription() {
return 'Output data in YAML format' . ApiFormatBase::getDescription();
}
public function getVersion() {
return __CLASS__ . ': $Id$';
}
}