Update code documentation with Bryans help for r62282 and r62331
authorSam Reed <reedy@users.mediawiki.org>
Thu, 11 Feb 2010 22:06:45 +0000 (22:06 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 11 Feb 2010 22:06:45 +0000 (22:06 +0000)
includes/api/ApiBase.php

index cbeeae8..22310fe 100644 (file)
@@ -967,6 +967,7 @@ abstract class ApiBase {
 
        /**
        * Returns a list of all possible errors returned by the module
+       * @return array in the format of array( key, param1, param2, ... ) or array( 'code' => ..., 'info' => ... )
        */
        public function getPossibleErrors() {
                $ret = array( array( 'readrequired' ) );
@@ -979,7 +980,9 @@ abstract class ApiBase {
        }
        
        /**
-       * 
+       * Parses a list of errors into a standardised format
+       * @param $errors array List of errors. Items can be in the for array( key, param1, param2, ... ) or array( 'code' => ..., 'info' => ... )
+       * @return array Parsed list of errors with items in the form array( 'code' => ..., 'info' => ... )
        */
        public function parseErrors( $errors ) {
                $ret = array();