Go to the documentation of this file.
31 parent::__construct(
$query, $moduleName,
'uc' );
47 $prop = array_flip( $this->params[
'prop'] );
48 $this->fld_ids = isset( $prop[
'ids'] );
49 $this->fld_title = isset( $prop[
'title'] );
50 $this->fld_comment = isset( $prop[
'comment'] );
51 $this->fld_parsedcomment = isset( $prop[
'parsedcomment'] );
52 $this->fld_size = isset( $prop[
'size'] );
53 $this->fld_sizediff = isset( $prop[
'sizediff'] );
54 $this->fld_flags = isset( $prop[
'flags'] );
55 $this->fld_timestamp = isset( $prop[
'timestamp'] );
56 $this->fld_patrolled = isset( $prop[
'patrolled'] );
57 $this->fld_tags = isset( $prop[
'tags'] );
62 $dbSecondary = $this->
getDB();
67 $sort = ( $this->params[
'dir'] ==
'newer' ?
'' :
' DESC' );
68 $op = ( $this->params[
'dir'] ==
'older' ?
'<' :
'>' );
74 if ( isset( $this->params[
'userprefix'] ) ) {
75 $this->multiUserMode =
true;
76 $this->orderBy =
'name';
82 $userIter = call_user_func(
function ()
use ( $dbSecondary,
$sort, $op,
$fname ) {
86 if ( !is_null( $this->params[
'continue'] ) ) {
87 $continue = explode(
'|', $this->params[
'continue'] );
90 $fromName = $continue[1];
92 $like = $dbSecondary->buildLike( $this->params[
'userprefix'], $dbSecondary->anyString() );
97 $from = $fromName ?
"$op= " . $dbSecondary->addQuotes( $fromName ) :
false;
104 $res = $dbSecondary->select(
106 [
'actor_id',
'user_id' =>
'COALESCE(actor_user,0)',
'user_name' =>
'actor_name' ],
107 array_merge( [
"actor_name$like" ], $from ? [
"actor_name $from" ] : [] ),
109 [
'ORDER BY' => [
"user_name $sort" ],
'LIMIT' => $limit ]
112 $res = $dbSecondary->select(
114 [
'actor_id' =>
'NULL',
'user_id' =>
'rev_user',
'user_name' =>
'rev_user_text' ],
115 array_merge( [
"rev_user_text$like" ], $from ? [
"rev_user_text $from" ] : [] ),
117 [
'DISTINCT',
'ORDER BY' => [
"rev_user_text $sort" ],
'LIMIT' => $limit ]
124 $options = $dbSecondary->unionSupportsOrderAndLimit()
125 ? [
'ORDER BY' => [
"user_name $sort" ],
'LIMIT' => $limit ] : [];
127 $subsql[] = $dbSecondary->selectSQLText(
129 [
'actor_id',
'user_id' =>
'COALESCE(actor_user,0)',
'user_name' =>
'actor_name' ],
130 array_merge( [
"actor_name$like" ], $from ? [
"actor_name $from" ] : [] ),
134 $subsql[] = $dbSecondary->selectSQLText(
135 [
'revision',
'actor' ],
136 [
'actor_id',
'user_id' =>
'rev_user',
'user_name' =>
'rev_user_text' ],
138 [
"rev_user_text$like",
'rev_user != 0' ],
139 $from ? [
"rev_user_text $from" ] : []
142 array_merge( [
'DISTINCT' ],
$options ),
143 [
'actor' => [
'LEFT JOIN',
'rev_user = actor_user' ] ]
145 $subsql[] = $dbSecondary->selectSQLText(
146 [
'revision',
'actor' ],
147 [
'actor_id',
'user_id' =>
'rev_user',
'user_name' =>
'rev_user_text' ],
149 [
"rev_user_text$like",
'rev_user = 0' ],
150 $from ? [
"rev_user_text $from" ] : []
153 array_merge( [
'DISTINCT' ],
$options ),
154 [
'actor' => [
'LEFT JOIN',
'rev_user_text = actor_name' ] ]
156 $sql = $dbSecondary->unionQueries( $subsql,
false ) .
" ORDER BY user_name $sort";
157 $sql = $dbSecondary->limitResult( $sql, $limit );
163 foreach (
$res as $row ) {
164 if ( ++$count >= $limit ) {
165 $fromName = $row->user_name;
170 }
while ( $fromName !==
false );
175 } elseif ( isset( $this->params[
'userids'] ) ) {
176 if ( !
count( $this->params[
'userids'] ) ) {
178 $this->
dieWithError( [
'apierror-paramempty', $encParamName ],
"paramempty_$encParamName" );
182 foreach ( $this->params[
'userids']
as $uid ) {
184 $this->
dieWithError( [
'apierror-invaliduserid', $uid ],
'invaliduserid' );
189 $this->orderBy =
'id';
190 $this->multiUserMode =
count( $ids ) > 1;
192 $from = $fromId =
false;
193 if ( $this->multiUserMode && !is_null( $this->params[
'continue'] ) ) {
194 $continue = explode(
'|', $this->params[
'continue'] );
197 $fromId = (int)$continue[1];
199 $from =
"$op= $fromId";
206 $res = $dbSecondary->select(
208 [
'actor_id',
'user_id' =>
'actor_user',
'user_name' =>
'actor_name' ],
209 array_merge( [
'actor_user' => $ids ], $from ? [
"actor_id $from" ] : [] ),
211 [
'ORDER BY' =>
"user_id $sort" ]
214 $res = $dbSecondary->select(
216 [
'actor_id' =>
'NULL',
'user_id' =>
'user_id',
'user_name' =>
'user_name' ],
217 array_merge( [
'user_id' => $ids ], $from ? [
"user_id $from" ] : [] ),
219 [
'ORDER BY' =>
"user_id $sort" ]
222 $res = $dbSecondary->select(
224 [
'actor_id',
'user_id',
'user_name' ],
225 array_merge( [
'user_id' => $ids ], $from ? [
"user_id $from" ] : [] ),
227 [
'ORDER BY' =>
"user_id $sort" ],
228 [
'actor' => [
'LEFT JOIN',
'actor_user = user_id' ] ]
232 $batchSize =
count( $ids );
235 if ( !
count( $this->params[
'user'] ) ) {
238 [
'apierror-paramempty', $encParamName ],
"paramempty_$encParamName"
241 foreach ( $this->params[
'user']
as $u ) {
245 [
'apierror-paramempty', $encParamName ],
"paramempty_$encParamName"
253 if (
$name ===
false ) {
256 [
'apierror-baduser', $encParamName,
wfEscapeWikiText( $u ) ],
"baduser_$encParamName"
259 $names[
$name] =
null;
263 $this->orderBy =
'name';
264 $this->multiUserMode =
count( $names ) > 1;
266 $from = $fromName =
false;
267 if ( $this->multiUserMode && !is_null( $this->params[
'continue'] ) ) {
268 $continue = explode(
'|', $this->params[
'continue'] );
271 $fromName = $continue[1];
272 $from =
"$op= " . $dbSecondary->addQuotes( $fromName );
279 $res = $dbSecondary->select(
281 [
'actor_id',
'user_id' =>
'actor_user',
'user_name' =>
'actor_name' ],
282 array_merge( [
'actor_name' => array_keys( $names ) ], $from ? [
"actor_id $from" ] : [] ),
284 [
'ORDER BY' =>
"actor_name $sort" ]
289 $res = $dbSecondary->select(
291 [
'actor_id' =>
'NULL',
'user_id',
'user_name' ],
292 array_merge( [
'user_name' => array_keys( $names ) ], $from ? [
"user_name $from" ] : [] ),
296 $res = $dbSecondary->select(
298 [
'actor_id',
'user_id',
'user_name' ],
299 array_merge( [
'user_name' => array_keys( $names ) ], $from ? [
"user_name $from" ] : [] ),
302 [
'actor' => [
'LEFT JOIN',
'actor_user = user_id' ] ]
305 foreach (
$res as $row ) {
306 $names[$row->user_name] = $row;
308 call_user_func_array(
309 $this->params[
'dir'] ==
'newer' ?
'ksort' :
'krsort', [ &$names, SORT_STRING ]
311 $neg = $op ===
'>' ? -1 : 1;
312 $userIter = call_user_func(
function ()
use ( $names, $fromName, $neg ) {
313 foreach ( $names
as $name => $row ) {
314 if ( $fromName ===
false || $neg * strcmp(
$name, $fromName ) <= 0 ) {
321 $batchSize =
count( $names );
335 $this->orderBy =
'actor';
339 $limit = $this->params[
'limit'];
341 while ( $userIter->valid() ) {
343 while (
count( $users ) < $batchSize && $userIter->valid() ) {
344 $users[] = $userIter->current();
355 foreach ( [
'actor',
'userid',
'username' ]
as $which ) {
356 if ( $this->
prepareQuery( $users, $limit - $count, $which ) ) {
358 $res = $this->
select( __METHOD__, [], $hookData );
359 foreach (
$res as $row ) {
360 $merged[] = [ $row, &$hookData ];
364 $neg = $this->params[
'dir'] ==
'newer' ? 1 : -1;
365 usort( $merged,
function ( $a, $b )
use ( $neg, $batchSize ) {
366 if ( $batchSize === 1 ) {
368 } elseif ( $this->orderBy ===
'id' ) {
369 $ret = $a[0]->rev_user - $b[0]->rev_user;
370 } elseif ( $this->orderBy ===
'name' ) {
371 $ret = strcmp( $a[0]->rev_user_text, $b[0]->rev_user_text );
373 $ret = $a[0]->rev_actor - $b[0]->rev_actor;
384 $ret = $a[0]->rev_id - $b[0]->rev_id;
389 $merged = array_slice( $merged, 0, $limit - $count + 1 );
392 if ( $this->fld_sizediff ) {
394 foreach ( $merged
as $data ) {
395 if ( $data[0]->rev_parent_id ) {
396 $revIds[] = $data[0]->rev_parent_id;
402 foreach ( $merged
as $data ) {
404 $hookData = &$data[1];
405 if ( ++$count > $limit ) {
413 $fit = $this->
processRow( $row, $vals, $hookData ) &&
436 $db = $this->
getDB();
444 if ( !isset( $revWhere[
'orconds'][$which] ) ) {
447 $this->
addWhere( $revWhere[
'orconds'][$which] );
450 $orderUserField =
'rev_actor';
451 $userField = $this->orderBy ===
'actor' ?
'revactor_actor' :
'actor_name';
453 $orderUserField = $this->orderBy ===
'id' ?
'rev_user' :
'rev_user_text';
454 $userField =
$revQuery[
'fields'][$orderUserField];
456 if ( $which ===
'actor' ) {
457 $tsField =
'revactor_timestamp';
458 $idField =
'revactor_rev';
460 $tsField =
'rev_timestamp';
465 if ( !is_null( $this->params[
'continue'] ) ) {
466 $continue = explode(
'|', $this->params[
'continue'] );
467 if ( $this->multiUserMode ) {
469 $modeFlag = array_shift( $continue );
471 $encUser = $db->addQuotes( array_shift( $continue ) );
475 $encTS = $db->addQuotes( $db->timestamp( $continue[0] ) );
476 $encId = (int)$continue[1];
478 $op = ( $this->params[
'dir'] ==
'older' ?
'<' :
'>' );
479 if ( $this->multiUserMode ) {
481 "$userField $op $encUser OR " .
482 "($userField = $encUser AND " .
483 "($tsField $op $encTS OR " .
484 "($tsField = $encTS AND " .
485 "$idField $op= $encId)))"
489 "$tsField $op $encTS OR " .
490 "($tsField = $encTS AND " .
491 "$idField $op= $encId)"
499 if ( !
$user->isAllowed(
'deletedhistory' ) ) {
501 } elseif ( !
$user->isAllowedAny(
'suppressrevision',
'viewsuppressed' ) ) {
507 $this->
addWhere( $db->bitAnd(
'rev_deleted', $bitmask ) .
" != $bitmask" );
511 if (
count( $users ) > 1 ) {
512 $this->
addWhereRange( $orderUserField, $this->params[
'dir'],
null,
null );
517 $this->params[
'dir'], $this->params[
'start'], $this->params[
'end'] );
520 $this->
addWhereRange( $idField, $this->params[
'dir'],
null,
null );
522 $this->
addWhereFld(
'page_namespace', $this->params[
'namespace'] );
524 $show = $this->params[
'show'];
525 if ( $this->params[
'toponly'] ) {
528 if ( !is_null( $show ) ) {
529 $show = array_flip( $show );
531 if ( ( isset( $show[
'minor'] ) && isset( $show[
'!minor'] ) )
532 || ( isset( $show[
'patrolled'] ) && isset( $show[
'!patrolled'] ) )
533 || ( isset( $show[
'autopatrolled'] ) && isset( $show[
'!autopatrolled'] ) )
534 || ( isset( $show[
'autopatrolled'] ) && isset( $show[
'!patrolled'] ) )
535 || ( isset( $show[
'top'] ) && isset( $show[
'!top'] ) )
536 || ( isset( $show[
'new'] ) && isset( $show[
'!new'] ) )
541 $this->
addWhereIf(
'rev_minor_edit = 0', isset( $show[
'!minor'] ) );
542 $this->
addWhereIf(
'rev_minor_edit != 0', isset( $show[
'minor'] ) );
545 isset( $show[
'!patrolled'] )
549 isset( $show[
'patrolled'] )
553 isset( $show[
'!autopatrolled'] )
557 isset( $show[
'autopatrolled'] )
559 $this->
addWhereIf( $idField .
' != page_latest', isset( $show[
'!top'] ) );
560 $this->
addWhereIf( $idField .
' = page_latest', isset( $show[
'top'] ) );
561 $this->
addWhereIf(
'rev_parent_id != 0', isset( $show[
'!new'] ) );
562 $this->
addWhereIf(
'rev_parent_id = 0', isset( $show[
'new'] ) );
566 if ( isset( $show[
'patrolled'] ) || isset( $show[
'!patrolled'] ) ||
567 isset( $show[
'autopatrolled'] ) || isset( $show[
'!autopatrolled'] ) || $this->fld_patrolled
569 if ( !
$user->useRCPatrol() && !
$user->useNPPatrol() ) {
570 $this->
dieWithError(
'apierror-permissiondenied-patrolflag',
'permissiondenied' );
573 $isFilterset = isset( $show[
'patrolled'] ) || isset( $show[
'!patrolled'] ) ||
574 isset( $show[
'autopatrolled'] ) || isset( $show[
'!autopatrolled'] );
577 $isFilterset ?
'JOIN' :
'LEFT JOIN',
582 'rc_timestamp = ' . $tsField,
583 'rc_this_oldid = ' . $idField,
588 $this->
addFieldsIf(
'rc_patrolled', $this->fld_patrolled );
590 if ( $this->fld_tags ) {
593 [
'tag_summary' => [
'LEFT JOIN', [ $idField .
' = ts_rev_id' ] ] ]
598 if ( isset( $this->params[
'tag'] ) ) {
601 [
'change_tag' => [
'INNER JOIN', [ $idField .
' = ct_rev_id' ] ] ]
603 $this->
addWhereFld(
'ct_tag', $this->params[
'tag'] );
620 $vals[
'texthidden'] =
true;
625 $vals[
'userid'] = (int)$row->rev_user;
626 $vals[
'user'] = $row->rev_user_text;
628 $vals[
'userhidden'] =
true;
631 if ( $this->fld_ids ) {
632 $vals[
'pageid'] = intval( $row->rev_page );
633 $vals[
'revid'] = intval( $row->rev_id );
636 if ( !is_null( $row->rev_parent_id ) ) {
637 $vals[
'parentid'] = intval( $row->rev_parent_id );
643 if ( $this->fld_title ) {
647 if ( $this->fld_timestamp ) {
648 $vals[
'timestamp'] =
wfTimestamp( TS_ISO_8601, $row->rev_timestamp );
651 if ( $this->fld_flags ) {
652 $vals[
'new'] = $row->rev_parent_id == 0 && !is_null( $row->rev_parent_id );
653 $vals[
'minor'] = (bool)$row->rev_minor_edit;
654 $vals[
'top'] = $row->page_latest == $row->rev_id;
657 if ( $this->fld_comment || $this->fld_parsedcomment ) {
659 $vals[
'commenthidden'] =
true;
668 if ( $userCanView ) {
669 $comment = $this->commentStore->getComment(
'rev_comment', $row )->text;
670 if ( $this->fld_comment ) {
671 $vals[
'comment'] = $comment;
674 if ( $this->fld_parsedcomment ) {
680 if ( $this->fld_patrolled ) {
685 if ( $this->fld_size && !is_null( $row->rev_len ) ) {
686 $vals[
'size'] = intval( $row->rev_len );
689 if ( $this->fld_sizediff
690 && !is_null( $row->rev_len )
691 && !is_null( $row->rev_parent_id )
693 $parentLen = isset( $this->parentLens[$row->rev_parent_id] )
694 ? $this->parentLens[$row->rev_parent_id]
696 $vals[
'sizediff'] = intval( $row->rev_len - $parentLen );
699 if ( $this->fld_tags ) {
700 if ( $row->ts_tags ) {
701 $tags = explode(
',', $row->ts_tags );
703 $vals[
'tags'] = $tags;
710 $vals[
'suppressed'] =
true;
717 if ( $this->multiUserMode ) {
718 switch ( $this->orderBy ) {
720 return "id|$row->rev_user|$row->rev_timestamp|$row->rev_id";
722 return "name|$row->rev_user_text|$row->rev_timestamp|$row->rev_id";
724 return "actor|$row->rev_actor|$row->rev_timestamp|$row->rev_id";
727 return "$row->rev_timestamp|$row->rev_id";
734 return 'anon-public-user-private';
763 'userprefix' =>
null,
808 'apihelp-query+usercontribs-param-show',
822 'action=query&list=usercontribs&ucuser=Example'
823 =>
'apihelp-query+usercontribs-example-user',
824 'action=query&list=usercontribs&ucuserprefix=192.0.2.'
825 =>
'apihelp-query+usercontribs-example-ipprefix',
830 return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Usercontribs';
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
processRow( $row, array &$data, array &$hookData)
Call the ApiQueryBaseProcessRow hook.
addFields( $value)
Add a set of fields to select to the internal array.
This is the main query class.
resetQueryParams()
Blank the internal arrays with query parameters.
static userCanBitfield( $bitfield, $field, User $user=null, Title $title=null)
Determine if the current user is allowed to view a particular field of this revision,...
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
dieWithError( $msg, $code=null, $data=null, $httpCode=null)
Abort execution with an error.
addTimestampWhereRange( $field, $dir, $start, $end, $sort=true)
Add a WHERE clause corresponding to a range, similar to addWhereRange, but converts $start and $end t...
const PARAM_HELP_MSG
(string|array|Message) Specify an alternative i18n documentation message for this parameter.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
const PARAM_TYPE
(string|string[]) Either an array of allowed value strings, or a string type as described below.
getResult()
Get the result object.
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
const MIGRATION_WRITE_BOTH
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
Allows to change the fields on the form that will be generated $name
addOption( $name, $value=null)
Add an option such as LIMIT or USE INDEX.
static newFromRow( $row, $data=null)
Create a new user object from a user row.
static newMigration()
Static constructor.
addFieldsIf( $value, $condition)
Same as addFields(), but add the fields only if a condition is met.
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
const MIGRATION_WRITE_NEW
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
const PARAM_DEPRECATED
(boolean) Is the parameter deprecated (will show a warning)?
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify $query
const PARAM_MIN
(integer) Lowest value allowed for the parameter, for PARAM_TYPE 'integer' and 'limit'.
static getQueryInfo( $options=[])
Return the tables, fields, and join conditions to be selected to create a new revision object.
namespace and then decline to actually register it file or subcat img or subcat $title
This is a base class for all Query modules.
const LIMIT_BIG1
Fast query, standard limit.
getDB()
Get the Query database connection (read-only)
static newFromResult( $res)
const PARAM_MAX
(integer) Max value allowed for the parameter, for PARAM_TYPE 'integer' and 'limit'.
getExamplesMessages()
Returns usage examples for this module.
static isIP( $name)
Does the string match an anonymous IP address?
addTables( $tables, $alias=null)
Add a set of tables to the internal array.
select( $method, $extraQuery=[], array &$hookData=null)
Execute a SELECT query based on the values in the internal arrays.
prepareQuery(array $users, $limit, $which)
Prepares the query and returns the limit of rows requested.
getCacheMode( $params)
Get the cache mode for the data generated by this module.
static makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
when a variable name is used in a it is silently declared as a new masking the global
getHelpUrls()
Return links to more detailed help pages about the module.
addWhereRange( $field, $dir, $start, $end, $sort=true)
Add a WHERE clause corresponding to a range, and an ORDER BY clause to sort in the right direction.
if(defined( 'MW_SETUP_CALLBACK')) $fname
Customization point after all loading (constants, functions, classes, DefaultSettings,...
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
static setIndexedTagName(array &$arr, $tag)
Set the tag name for numeric-keyed values in XML format.
dieContinueUsageIf( $condition)
Die with the 'badcontinue' error.
encodeParamName( $paramName)
This method mangles parameter name based on the prefix supplied to the constructor.
static getParentLengths( $db, array $revIds)
Do a batched query to get the parent revision lengths.
extractRowInfo( $row)
Extract fields from the database row and append them to a result array.
addJoinConds( $join_conds)
Add a set of JOIN conditions to the internal array.
wfEscapeWikiText( $text)
Escapes the given text so that it may be output using addWikiText() without any linking,...
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
addWhereFld( $field, $value)
Equivalent to addWhere(array($field => $value))
requireOnlyOneParameter( $params, $required)
Die if none or more than one of a certain set of parameters is set and not false.
static formatComment( $comment, $title=null, $local=false, $wikiId=null)
This function is called by all recent changes variants, by the page history, and by the user contribu...
selectNamedDB( $name, $db, $groups)
Selects the query database connection with the given name.
const LIMIT_BIG2
Fast query, apihighlimits limit.
static getCanonicalName( $name, $validate='valid')
Given unvalidated user input, return a canonical username, or false if the username is invalid.
const PARAM_DFLT
(null|boolean|integer|string) Default value of the parameter.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
getModuleName()
Get the name of the module being executed by this instance.
const PARAM_ISMULTI
(boolean) Accept multiple pipe-separated values for this parameter (e.g.
const PARAM_MAX2
(integer) Max value allowed for the parameter for users with the apihighlimits right,...
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
addWhere( $value)
Add a set of WHERE clauses to the internal array.
setContinueEnumParameter( $paramName, $paramValue)
Set a query-continue value.
const PARAM_HELP_MSG_PER_VALUE
((string|array|Message)[]) When PARAM_TYPE is an array, this is an array mapping those values to $msg...
static isExternal( $username)
Tells whether the username is external or not.
addWhereIf( $value, $condition)
Same as addWhere(), but add the WHERE clauses only if a condition is met.
static addTitleInfo(&$arr, $title, $prefix='')
Add information (title and namespace) about a Title object to a result array.
the array() calling protocol came about after MediaWiki 1.4rc1.
__construct(ApiQuery $query, $moduleName)
This query action adds a list of a specified user's contributions to the output.
int $wgActorTableSchemaMigrationStage
Actor table schema migration stage.