r80728 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80727‎ | r80728 | r80729 >
Date:23:12, 21 January 2011
Author:zak
Status:ok
Tags:
Comment:
Make paraminfo output examples along with parameter information.
Modified paths:
  • /trunk/phase3/includes/api/ApiParamInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParamInfo.php
@@ -92,6 +92,7 @@
9393 $result = $this->getResult();
9494 $retval['classname'] = get_class( $obj );
9595 $retval['description'] = implode( "\n", (array)$obj->getDescription() );
 96+ $retval['examples'] = implode( "\n", (array)$obj->getExamples() );
9697 $retval['version'] = implode( "\n", (array)$obj->getVersion() );
9798 $retval['prefix'] = $obj->getModulePrefix();
9899

Follow-up revisions

RevisionCommit summaryAuthorDate
r814071.17: MFT r79454, r79455, r79456, r79536, r79727, r79733, r79773, r79774, r80...catrope19:18, 2 February 2011

Status & tagging log