X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatYaml.php;h=e849c465310681c400ae2641628f04df1f20e3d3;hb=9d285a54b4a8f97b23f5f51601bfcd53de36521c;hp=e67ee62199663515201e4b41c9e0288cbbe715d4;hpb=cb38c11c8496b509895e1ff9bcce5b5f42b07bb6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatYaml.php b/includes/api/ApiFormatYaml.php index e67ee62199..e849c46531 100644 --- a/includes/api/ApiFormatYaml.php +++ b/includes/api/ApiFormatYaml.php @@ -1,11 +1,10 @@ @gmail.com + * Created on Sep 19, 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 @@ -19,22 +18,25 @@ * * 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., - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html + * + * @file */ -if (!defined('MEDIAWIKI')) { +if ( !defined( 'MEDIAWIKI' ) ) { // Eclipse helper - will be ignored in production - require_once ('ApiFormatBase.php'); + require_once( 'ApiFormatBase.php' ); } /** - * @addtogroup API + * API YAML output formatter + * @ingroup API */ class ApiFormatYaml extends ApiFormatBase { - public function __construct($main, $format) { - parent :: __construct($main, $format); + public function __construct( $main, $format ) { + parent::__construct( $main, $format ); } public function getMimeType() { @@ -42,15 +44,14 @@ class ApiFormatYaml extends ApiFormatBase { } public function execute() { - $this->printText(Spyc :: YAMLDump($this->getResultData())); + $this->printText( Spyc::YAMLDump( $this->getResultData() ) ); } - protected function getDescription() { - return 'Output data in YAML format' . parent :: getDescription(); + public function getDescription() { + return 'Output data in YAML format' . parent::getDescription(); } public function getVersion() { return __CLASS__ . ': $Id$'; } } -?>