Add some method documentation
authorSam Reed <reedy@users.mediawiki.org>
Thu, 23 Dec 2010 19:24:38 +0000 (19:24 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 23 Dec 2010 19:24:38 +0000 (19:24 +0000)
includes/api/ApiHelp.php
includes/api/ApiMain.php

index 0897e4b..c5170c4 100644 (file)
@@ -93,6 +93,11 @@ class ApiHelp extends ApiBase {
                $result->addValue( null, $this->getModuleName(), $r );
        }
 
+       /**
+        * @param  $module ApiBase
+        * @param  $type String What type of request is this? e.g. action, query, list, prop, meta, format
+        * @return string
+        */
        private function buildModuleHelp( $module, $type ) {
                $msg = ApiMain::makeHelpMsgHeader( $module, $type );
 
index d1d7214..24be819 100644 (file)
@@ -867,6 +867,12 @@ class ApiMain extends ApiBase {
                return $msg;
        }
 
+       /**
+        * @static
+        * @param  $module ApiBase
+        * @param  $paramName String What type of request is this? e.g. action, query, list, prop, meta, format
+        * @return string
+        */
        public static function makeHelpMsgHeader( $module, $paramName ) {
                $modulePrefix = $module->getModulePrefix();
                if ( strval( $modulePrefix ) !== '' ) {