Followup r81583, break some of the long lines and centralize the regex.
[lhc/web/wiklou.git] / includes / api / ApiParamInfo.php
index 3b1a4ed..7f1f945 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * API for MediaWiki 1.8+
+ *
  *
  * Created on Dec 01, 2007
  *
@@ -84,10 +84,15 @@ class ApiParamInfo extends ApiBase {
                $result->addValue( null, $this->getModuleName(), $r );
        }
 
+       /**
+        * @param  $obj ApiBase
+        * @return ApiResult
+        */
        function getClassInfo( $obj ) {
                $result = $this->getResult();
                $retval['classname'] = get_class( $obj );
                $retval['description'] = implode( "\n", (array)$obj->getDescription() );
+               $retval['examples'] = implode( "\n", (array)$obj->getExamples() );
                $retval['version'] = implode( "\n", (array)$obj->getVersion() );
                $retval['prefix'] = $obj->getModulePrefix();