]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/api/ApiFormatYaml.php
MediaWiki 1.16.0
[autoinstallsdev/mediawiki.git] / includes / api / ApiFormatYaml.php
index 400c0a4bd6ba526cb9eaa0f5a4eba33eefd2327f..39381b0f0c61c6f0a5d64b4a7cf0122e202162a2 100644 (file)
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-if (!defined('MEDIAWIKI')) {
+if ( !defined( 'MEDIAWIKI' ) ) {
        // Eclipse helper - will be ignored in production
-       require_once ('ApiFormatBase.php');
+       require_once ( 'ApiFormatBase.php' );
 }
 
 /**
- * @addtogroup API
+ * @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 +42,14 @@ class ApiFormatYaml extends ApiFormatBase {
        }
 
        public function execute() {
-               $this->printText(Spyc :: YAMLDump($this->getResultData()));
+               $this->printText( Spyc :: YAMLDump( $this->getResultData() ) );
        }
 
-       protected function getDescription() {
+       public function getDescription() {
                return 'Output data in YAML format' . parent :: getDescription();
        }
 
        public function getVersion() {
-               return __CLASS__ . ': $Id: ApiFormatYaml.php 23531 2007-06-29 01:19:14Z simetrical $';
+               return __CLASS__ . ': $Id: ApiFormatYaml.php 60930 2010-01-11 15:55:52Z simetrical $';
        }
 }
-