Followup r81583, break some of the long lines and centralize the regex.
[lhc/web/wiklou.git] / includes / api / ApiQueryUserContributions.php
index 20cdaf1..c0cb76e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * API for MediaWiki 1.8+
+ *
  *
  * Created on Oct 16, 2006
  *
@@ -40,10 +40,10 @@ class ApiQueryContributions extends ApiQueryBase {
                parent::__construct( $query, $moduleName, 'uc' );
        }
 
-       private $params;
+       private $params, $prefixMode, $userprefix, $multiUserMode, $usernames;
        private $fld_ids = false, $fld_title = false, $fld_timestamp = false,
                        $fld_comment = false, $fld_parsedcomment = false, $fld_flags = false,
-                       $fld_patrolled = false, $fld_tags = false;
+                       $fld_patrolled = false, $fld_tags = false, $fld_size = false;
 
        public function execute() {
                // Parse some parameters
@@ -206,6 +206,7 @@ class ApiQueryContributions extends ApiQueryBase {
                        'rev_timestamp',
                        'page_namespace',
                        'page_title',
+                       'rev_user',
                        'rev_user_text',
                        'rev_deleted'
                ) );
@@ -272,6 +273,7 @@ class ApiQueryContributions extends ApiQueryBase {
        private function extractRowInfo( $row ) {
                $vals = array();
 
+               $vals['userid'] = $row->rev_user;
                $vals['user'] = $row->rev_user_text;
                if ( $row->rev_deleted & Revision::DELETED_USER ) {
                        $vals['userhidden'] = '';
@@ -424,8 +426,8 @@ class ApiQueryContributions extends ApiQueryBase {
                        'namespace' => 'Only list contributions in these namespaces',
                        'prop' => array(
                                'Include additional pieces of information',
-                               ' ids            - Adds the page id and revision id',
-                               ' title          - Adds the title and namespace id of the page',
+                               ' ids            - Adds the page ID and revision ID',
+                               ' title          - Adds the title and namespace ID of the page',
                                ' timestamp      - Adds the timestamp of the edit',
                                ' comment        - Adds the comment of the edit',
                                ' parsedcomment  - Adds the parsed comment of the edit',