MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onUsersPagerDoBatchLookups ( $dbr, $userIds, &$cache, &$groups) | |
This hook is called called in UsersPager::doBatchLookups() | |
Stable to implement.
Definition at line 11 of file UsersPagerDoBatchLookupsHook.php.
MediaWiki\Hook\UsersPagerDoBatchLookupsHook::onUsersPagerDoBatchLookups | ( | $dbr, | |
$userIds, | |||
& | $cache, | ||
& | $groups | ||
) |
This hook is called called in UsersPager::doBatchLookups()
It is used to give extensions providing user group data from an alternate source a chance to add their data into the cache array so that things like global user groups are displayed correctly in Special:ListUsers.
DBConnRef | $dbr | Read-only database handle |
int[] | $userIds | Array of user IDs whose groups we should look up |
array | &$cache | Array of user ID -> (array of internal group name (e.g. 'sysop') -> UserGroupMembership object) |
array | &$groups | Array of group name -> bool true mappings for members of a given user group |
Implemented in MediaWiki\HookContainer\HookRunner.