r62333 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62332‎ | r62333 | r62334 >
Date:22:06, 11 February 2010
Author:reedy
Status:ok
Tags:
Comment:
Update code documentation with Bryans help for r62282 and r62331
Modified paths:
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -967,6 +967,7 @@
968968
969969 /**
970970 * Returns a list of all possible errors returned by the module
 971+ * @return array in the format of array( key, param1, param2, ... ) or array( 'code' => ..., 'info' => ... )
971972 */
972973 public function getPossibleErrors() {
973974 $ret = array( array( 'readrequired' ) );
@@ -979,7 +980,9 @@
980981 }
981982
982983 /**
983 - *
 984+ * Parses a list of errors into a standardised format
 985+ * @param $errors array List of errors. Items can be in the for array( key, param1, param2, ... ) or array( 'code' => ..., 'info' => ... )
 986+ * @return array Parsed list of errors with items in the form array( 'code' => ..., 'info' => ... )
984987 */
985988 public function parseErrors( $errors ) {
986989 $ret = array();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r62282Start implementation of bug 18771 - List possible errors in action=paraminfo...reedy01:13, 11 February 2010
r62331Followup to bryans comment for r62328...reedy21:53, 11 February 2010

Status & tagging log