MediaWiki  1.23.2
ApiQueryUsers.php
Go to the documentation of this file.
1 <?php
32 class ApiQueryUsers extends ApiQueryBase {
33 
35 
36  public function __construct( $query, $moduleName ) {
37  parent::__construct( $query, $moduleName, 'us' );
38  }
39 
46  protected function getTokenFunctions() {
47  // Don't call the hooks twice
48  if ( isset( $this->tokenFunctions ) ) {
49  return $this->tokenFunctions;
50  }
51 
52  // If we're in JSON callback mode, no tokens can be obtained
53  if ( !is_null( $this->getMain()->getRequest()->getVal( 'callback' ) ) ) {
54  return array();
55  }
56 
57  $this->tokenFunctions = array(
58  'userrights' => array( 'ApiQueryUsers', 'getUserrightsToken' ),
59  );
60  wfRunHooks( 'APIQueryUsersTokens', array( &$this->tokenFunctions ) );
61 
62  return $this->tokenFunctions;
63  }
64 
69  public static function getUserrightsToken( $user ) {
71 
72  // Since the permissions check for userrights is non-trivial,
73  // don't bother with it here
74  return $wgUser->getEditToken( $user->getName() );
75  }
76 
77  public function execute() {
78  $params = $this->extractRequestParams();
79 
80  if ( !is_null( $params['prop'] ) ) {
81  $this->prop = array_flip( $params['prop'] );
82  } else {
83  $this->prop = array();
84  }
85 
86  $users = (array)$params['users'];
87  $goodNames = $done = array();
88  $result = $this->getResult();
89  // Canonicalize user names
90  foreach ( $users as $u ) {
91  $n = User::getCanonicalName( $u );
92  if ( $n === false || $n === '' ) {
93  $vals = array( 'name' => $u, 'invalid' => '' );
94  $fit = $result->addValue( array( 'query', $this->getModuleName() ),
95  null, $vals );
96  if ( !$fit ) {
97  $this->setContinueEnumParameter( 'users',
98  implode( '|', array_diff( $users, $done ) ) );
99  $goodNames = array();
100  break;
101  }
102  $done[] = $u;
103  } else {
104  $goodNames[] = $n;
105  }
106  }
107 
108  $result = $this->getResult();
109 
110  if ( count( $goodNames ) ) {
111  $this->addTables( 'user' );
112  $this->addFields( User::selectFields() );
113  $this->addWhereFld( 'user_name', $goodNames );
114 
115  $this->showHiddenUsersAddBlockInfo( isset( $this->prop['blockinfo'] ) );
116 
117  $data = array();
118  $res = $this->select( __METHOD__ );
119  $this->resetQueryParams();
120 
121  // get user groups if needed
122  if ( isset( $this->prop['groups'] ) || isset( $this->prop['rights'] ) ) {
123  $userGroups = array();
124 
125  $this->addTables( 'user' );
126  $this->addWhereFld( 'user_name', $goodNames );
127  $this->addTables( 'user_groups' );
128  $this->addJoinConds( array( 'user_groups' => array( 'INNER JOIN', 'ug_user=user_id' ) ) );
129  $this->addFields( array( 'user_name', 'ug_group' ) );
130  $userGroupsRes = $this->select( __METHOD__ );
131 
132  foreach ( $userGroupsRes as $row ) {
133  $userGroups[$row->user_name][] = $row->ug_group;
134  }
135  }
136 
137  foreach ( $res as $row ) {
138  // create user object and pass along $userGroups if set
139  // that reduces the number of database queries needed in User dramatically
140  if ( !isset( $userGroups ) ) {
141  $user = User::newFromRow( $row );
142  } else {
143  if ( !isset( $userGroups[$row->user_name] ) || !is_array( $userGroups[$row->user_name] ) ) {
144  $userGroups[$row->user_name] = array();
145  }
146  $user = User::newFromRow( $row, array( 'user_groups' => $userGroups[$row->user_name] ) );
147  }
148  $name = $user->getName();
149 
150  $data[$name]['userid'] = $user->getId();
151  $data[$name]['name'] = $name;
152 
153  if ( isset( $this->prop['editcount'] ) ) {
154  $data[$name]['editcount'] = $user->getEditCount();
155  }
156 
157  if ( isset( $this->prop['registration'] ) ) {
158  $data[$name]['registration'] = wfTimestampOrNull( TS_ISO_8601, $user->getRegistration() );
159  }
160 
161  if ( isset( $this->prop['groups'] ) ) {
162  $data[$name]['groups'] = $user->getEffectiveGroups();
163  }
164 
165  if ( isset( $this->prop['implicitgroups'] ) ) {
166  $data[$name]['implicitgroups'] = $user->getAutomaticGroups();
167  }
168 
169  if ( isset( $this->prop['rights'] ) ) {
170  $data[$name]['rights'] = $user->getRights();
171  }
172  if ( $row->ipb_deleted ) {
173  $data[$name]['hidden'] = '';
174  }
175  if ( isset( $this->prop['blockinfo'] ) && !is_null( $row->ipb_by_text ) ) {
176  $data[$name]['blockid'] = $row->ipb_id;
177  $data[$name]['blockedby'] = $row->ipb_by_text;
178  $data[$name]['blockedbyid'] = $row->ipb_by;
179  $data[$name]['blockreason'] = $row->ipb_reason;
180  $data[$name]['blockexpiry'] = $row->ipb_expiry;
181  }
182 
183  if ( isset( $this->prop['emailable'] ) && $user->canReceiveEmail() ) {
184  $data[$name]['emailable'] = '';
185  }
186 
187  if ( isset( $this->prop['gender'] ) ) {
188  $gender = $user->getOption( 'gender' );
189  if ( strval( $gender ) === '' ) {
190  $gender = 'unknown';
191  }
192  $data[$name]['gender'] = $gender;
193  }
194 
195  if ( !is_null( $params['token'] ) ) {
197  foreach ( $params['token'] as $t ) {
198  $val = call_user_func( $tokenFunctions[$t], $user );
199  if ( $val === false ) {
200  $this->setWarning( "Action '$t' is not allowed for the current user" );
201  } else {
202  $data[$name][$t . 'token'] = $val;
203  }
204  }
205  }
206  }
207  }
208 
209  $context = $this->getContext();
210  // Second pass: add result data to $retval
211  foreach ( $goodNames as $u ) {
212  if ( !isset( $data[$u] ) ) {
213  $data[$u] = array( 'name' => $u );
214  $urPage = new UserrightsPage;
215  $urPage->setContext( $context );
216  $iwUser = $urPage->fetchUser( $u );
217 
218  if ( $iwUser instanceof UserRightsProxy ) {
219  $data[$u]['interwiki'] = '';
220 
221  if ( !is_null( $params['token'] ) ) {
223 
224  foreach ( $params['token'] as $t ) {
225  $val = call_user_func( $tokenFunctions[$t], $iwUser );
226  if ( $val === false ) {
227  $this->setWarning( "Action '$t' is not allowed for the current user" );
228  } else {
229  $data[$u][$t . 'token'] = $val;
230  }
231  }
232  }
233  } else {
234  $data[$u]['missing'] = '';
235  }
236  } else {
237  if ( isset( $this->prop['groups'] ) && isset( $data[$u]['groups'] ) ) {
238  $result->setIndexedTagName( $data[$u]['groups'], 'g' );
239  }
240  if ( isset( $this->prop['implicitgroups'] ) && isset( $data[$u]['implicitgroups'] ) ) {
241  $result->setIndexedTagName( $data[$u]['implicitgroups'], 'g' );
242  }
243  if ( isset( $this->prop['rights'] ) && isset( $data[$u]['rights'] ) ) {
244  $result->setIndexedTagName( $data[$u]['rights'], 'r' );
245  }
246  }
247 
248  $fit = $result->addValue( array( 'query', $this->getModuleName() ),
249  null, $data[$u] );
250  if ( !$fit ) {
251  $this->setContinueEnumParameter( 'users',
252  implode( '|', array_diff( $users, $done ) ) );
253  break;
254  }
255  $done[] = $u;
256  }
257  $result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'user' );
258  }
259 
267  public static function getAutoGroups( $user ) {
268  wfDeprecated( __METHOD__, '1.20' );
269 
270  return $user->getAutomaticGroups();
271  }
272 
273  public function getCacheMode( $params ) {
274  return isset( $params['token'] ) ? 'private' : 'anon-public-user-private';
275  }
276 
277  public function getAllowedParams() {
278  return array(
279  'prop' => array(
280  ApiBase::PARAM_DFLT => null,
281  ApiBase::PARAM_ISMULTI => true,
283  'blockinfo',
284  'groups',
285  'implicitgroups',
286  'rights',
287  'editcount',
288  'registration',
289  'emailable',
290  'gender',
291  )
292  ),
293  'users' => array(
294  ApiBase::PARAM_ISMULTI => true
295  ),
296  'token' => array(
297  ApiBase::PARAM_TYPE => array_keys( $this->getTokenFunctions() ),
298  ApiBase::PARAM_ISMULTI => true
299  ),
300  );
301  }
302 
303  public function getParamDescription() {
304  return array(
305  'prop' => array(
306  'What pieces of information to include',
307  ' blockinfo - Tags if the user is blocked, by whom, and for what reason',
308  ' groups - Lists all the groups the user(s) belongs to',
309  ' implicitgroups - Lists all the groups a user is automatically a member of',
310  ' rights - Lists all the rights the user(s) has',
311  ' editcount - Adds the user\'s edit count',
312  ' registration - Adds the user\'s registration timestamp',
313  ' emailable - Tags if the user can and wants to receive ' .
314  'email through [[Special:Emailuser]]',
315  ' gender - Tags the gender of the user. Returns "male", "female", or "unknown"',
316  ),
317  'users' => 'A list of users to obtain the same information for',
318  'token' => 'Which tokens to obtain for each user',
319  );
320  }
321 
322  public function getResultProperties() {
323  $props = array(
324  '' => array(
325  'userid' => array(
326  ApiBase::PROP_TYPE => 'integer',
327  ApiBase::PROP_NULLABLE => true
328  ),
329  'name' => 'string',
330  'invalid' => 'boolean',
331  'hidden' => 'boolean',
332  'interwiki' => 'boolean',
333  'missing' => 'boolean'
334  ),
335  'editcount' => array(
336  'editcount' => array(
337  ApiBase::PROP_TYPE => 'integer',
338  ApiBase::PROP_NULLABLE => true
339  )
340  ),
341  'registration' => array(
342  'registration' => array(
343  ApiBase::PROP_TYPE => 'timestamp',
344  ApiBase::PROP_NULLABLE => true
345  )
346  ),
347  'blockinfo' => array(
348  'blockid' => array(
349  ApiBase::PROP_TYPE => 'integer',
350  ApiBase::PROP_NULLABLE => true
351  ),
352  'blockedby' => array(
353  ApiBase::PROP_TYPE => 'string',
354  ApiBase::PROP_NULLABLE => true
355  ),
356  'blockedbyid' => array(
357  ApiBase::PROP_TYPE => 'integer',
358  ApiBase::PROP_NULLABLE => true
359  ),
360  'blockedreason' => array(
361  ApiBase::PROP_TYPE => 'string',
362  ApiBase::PROP_NULLABLE => true
363  ),
364  'blockedexpiry' => array(
365  ApiBase::PROP_TYPE => 'timestamp',
366  ApiBase::PROP_NULLABLE => true
367  )
368  ),
369  'emailable' => array(
370  'emailable' => 'boolean'
371  ),
372  'gender' => array(
373  'gender' => array(
375  'male',
376  'female',
377  'unknown'
378  ),
379  ApiBase::PROP_NULLABLE => true
380  )
381  )
382  );
383 
384  self::addTokenProperties( $props, $this->getTokenFunctions() );
385 
386  return $props;
387  }
388 
389  public function getDescription() {
390  return 'Get information about a list of users.';
391  }
392 
393  public function getExamples() {
394  return 'api.php?action=query&list=users&ususers=brion|TimStarling&usprop=groups|editcount|gender';
395  }
396 
397  public function getHelpUrls() {
398  return 'https://www.mediawiki.org/wiki/API:Users';
399  }
400 }
ApiQueryUsers\getResultProperties
getResultProperties()
Returns possible properties in the result, grouped by the value of the prop parameter that shows them...
Definition: ApiQueryUsers.php:322
ContextSource\$context
IContextSource $context
Definition: ContextSource.php:33
ApiQueryBase\showHiddenUsersAddBlockInfo
showHiddenUsersAddBlockInfo( $showBlockInfo)
Filters hidden users (where the user doesn't have the right to view them) Also adds relevant block in...
Definition: ApiQueryBase.php:566
$wgUser
$wgUser
Definition: Setup.php:552
$result
The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message. Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item. $reader:XMLReader object $logInfo:Array of information Return false to stop further processing of the tag 'ImportHandlePageXMLTag':When parsing a XML tag in a page. $reader:XMLReader object $pageInfo:Array of information Return false to stop further processing of the tag 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information Return false to stop further processing of the tag 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. $reader:XMLReader object Return false to stop further processing of the tag 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. $reader:XMLReader object $revisionInfo:Array of information Return false to stop further processing of the tag 'InfoAction':When building information to display on the action=info page. $context:IContextSource object & $pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect. $title:Title object for the current page $request:WebRequest $ignoreRedirect:boolean to skip redirect check $target:Title/string of redirect target $article:Article object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not. Return true without providing an interwiki to continue interwiki search. $prefix:interwiki prefix we are looking for. & $iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InternalParseBeforeSanitize':during Parser 's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings. Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InternalParseBeforeLinks':during Parser 's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InvalidateEmailComplete':Called after a user 's email has been invalidated successfully. $user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification. Callee may modify $url and $query, URL will be constructed as $url . $query & $url:URL to index.php & $query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) $article:article(object) being checked 'IsTrustedProxy':Override the result of wfIsTrustedProxy() $ip:IP being check $result:Change this value to override the result of wfIsTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from & $allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of User::isValidEmailAddr(), for instance to return false if the domain name doesn 't match your organization. $addr:The e-mail address entered by the user & $result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user & $result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we 're looking for a messages file for & $file:The messages file path, you can override this to change the location. 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces. Do not use this hook to add namespaces. Use CanonicalNamespaces for that. & $namespaces:Array of namespaces indexed by their numbers 'LanguageGetMagic':DEPRECATED, use $magicWords in a file listed in $wgExtensionMessagesFiles instead. Use this to define synonyms of magic words depending of the language $magicExtensions:associative array of magic words synonyms $lang:language code(string) 'LanguageGetSpecialPageAliases':DEPRECATED, use $specialPageAliases in a file listed in $wgExtensionMessagesFiles instead. Use to define aliases of special pages names depending of the language $specialPageAliases:associative array of magic words synonyms $lang:language code(string) 'LanguageGetTranslatedLanguageNames':Provide translated language names. & $names:array of language code=> language name $code language of the preferred translations 'LanguageLinks':Manipulate a page 's language links. This is called in various places to allow extensions to define the effective language links for a page. $title:The page 's Title. & $links:Associative array mapping language codes to prefixed links of the form "language:title". & $linkFlags:Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles. 'LinkBegin':Used when generating internal and interwiki links in Linker::link(), before processing starts. Return false to skip default processing and return $ret. See documentation for Linker::link() for details on the expected meanings of parameters. $skin:the Skin object $target:the Title that the link is pointing to & $html:the contents that the< a > tag should have(raw HTML) $result
Definition: hooks.txt:1528
ApiQueryBase\addFields
addFields( $value)
Add a set of fields to select to the internal array.
Definition: ApiQueryBase.php:117
ContextSource\getContext
getContext()
Get the RequestContext object.
Definition: ContextSource.php:40
ApiQueryUsers
Query module to get information about a list of users.
Definition: ApiQueryUsers.php:32
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
ApiQueryUsers\getAutoGroups
static getAutoGroups( $user)
Gets all the groups that a user is automatically a member of (implicit groups)
Definition: ApiQueryUsers.php:267
ApiQueryBase\resetQueryParams
resetQueryParams()
Blank the internal arrays with query parameters.
Definition: ApiQueryBase.php:68
ApiBase\PARAM_TYPE
const PARAM_TYPE
Definition: ApiBase.php:50
ApiBase\getResult
getResult()
Get the result object.
Definition: ApiBase.php:205
ApiQueryBase\select
select( $method, $extraQuery=array())
Execute a SELECT query based on the values in the internal arrays.
Definition: ApiQueryBase.php:274
$n
$n
Definition: RandomTest.php:76
$params
$params
Definition: styleTest.css.php:40
ContextSource\getRequest
getRequest()
Get the WebRequest object.
Definition: ContextSource.php:77
UserRightsProxy
Cut-down copy of User interface for local-interwiki-database user rights manipulation.
Definition: UserRightsProxy.php:27
User\newFromRow
static newFromRow( $row, $data=null)
Create a new user object from a user row.
Definition: User.php:470
ApiQueryUsers\getUserrightsToken
static getUserrightsToken( $user)
Definition: ApiQueryUsers.php:69
UserrightsPage
Special page to allow managing user group membership.
Definition: SpecialUserrights.php:29
wfDeprecated
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Definition: GlobalFunctions.php:1127
ApiQueryBase
This is a base class for all Query modules.
Definition: ApiQueryBase.php:34
TS_ISO_8601
const TS_ISO_8601
ISO 8601 format with no timezone: 1986-02-09T20:00:00Z.
Definition: GlobalFunctions.php:2448
wfTimestampOrNull
wfTimestampOrNull( $outputtype=TS_UNIX, $ts=null)
Return a formatted timestamp, or null if input is null.
Definition: GlobalFunctions.php:2501
wfRunHooks
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
Definition: GlobalFunctions.php:4001
ApiQueryBase\addTables
addTables( $tables, $alias=null)
Add a set of tables to the internal array.
Definition: ApiQueryBase.php:82
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
global
when a variable name is used in a it is silently declared as a new masking the global
Definition: design.txt:93
ApiBase\PROP_TYPE
const PROP_TYPE
Definition: ApiBase.php:74
ApiQueryUsers\getHelpUrls
getHelpUrls()
Definition: ApiQueryUsers.php:397
ApiBase\extractRequestParams
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
Definition: ApiBase.php:687
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
ApiQueryUsers\getParamDescription
getParamDescription()
Returns an array of parameter descriptions.
Definition: ApiQueryUsers.php:303
ApiBase\addTokenProperties
static addTokenProperties(&$props, $tokenFunctions)
Add token properties to the array used by getResultProperties, based on a token functions mapping.
Definition: ApiBase.php:646
ApiBase\PROP_NULLABLE
const PROP_NULLABLE
Definition: ApiBase.php:76
ApiQueryUsers\execute
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
Definition: ApiQueryUsers.php:77
ApiQueryBase\addJoinConds
addJoinConds( $join_conds)
Add a set of JOIN conditions to the internal array.
Definition: ApiQueryBase.php:106
ApiQueryBase\addWhereFld
addWhereFld( $field, $value)
Equivalent to addWhere(array($field => $value))
Definition: ApiQueryBase.php:185
ApiQueryUsers\getTokenFunctions
getTokenFunctions()
Get an array mapping token names to their handler functions.
Definition: ApiQueryUsers.php:46
ApiQueryUsers\getExamples
getExamples()
Returns usage examples for this module.
Definition: ApiQueryUsers.php:393
$user
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
Definition: hooks.txt:237
ApiQueryUsers\getCacheMode
getCacheMode( $params)
Get the cache mode for the data generated by this module.
Definition: ApiQueryUsers.php:273
ApiBase\setWarning
setWarning( $warning)
Set warning section for this module.
Definition: ApiBase.php:245
ApiQueryUsers\getDescription
getDescription()
Returns the description string for this module.
Definition: ApiQueryUsers.php:389
ApiQueryUsers\$tokenFunctions
$tokenFunctions
Definition: ApiQueryUsers.php:34
User\getCanonicalName
static getCanonicalName( $name, $validate='valid')
Given unvalidated user input, return a canonical username, or false if the username is invalid.
Definition: User.php:883
ApiBase\PARAM_DFLT
const PARAM_DFLT
Definition: ApiBase.php:46
as
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
Definition: distributors.txt:9
SpecialPage\setContext
setContext( $context)
Sets the context this SpecialPage is executed in.
Definition: SpecialPage.php:498
ApiBase\getModuleName
getModuleName()
Get the name of the module being executed by this instance.
Definition: ApiBase.php:148
ApiBase\PARAM_ISMULTI
const PARAM_ISMULTI
Definition: ApiBase.php:48
ApiQueryUsers\getAllowedParams
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
Definition: ApiQueryUsers.php:277
ApiBase\getMain
getMain()
Get the main module.
Definition: ApiBase.php:188
User\selectFields
static selectFields()
Return the list of user fields that should be selected to create a new user object.
Definition: User.php:4827
$t
$t
Definition: testCompression.php:65
ApiQueryBase\setContinueEnumParameter
setContinueEnumParameter( $paramName, $paramValue)
Set a query-continue value.
Definition: ApiQueryBase.php:404
$query
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query
Definition: hooks.txt:1105
ApiQueryUsers\$prop
$prop
Definition: ApiQueryUsers.php:34
$res
$res
Definition: database.txt:21
ApiQueryUsers\__construct
__construct( $query, $moduleName)
Definition: ApiQueryUsers.php:36