Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5968379
UsersPagerDoBatchLookupsHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
UsersPagerDoBatchLookupsHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
Wikimedia\Rdbms\IReadableDatabase
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UsersPagerDoBatchLookups" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
UsersPagerDoBatchLookupsHook
{
/**
* This hook is 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.
*
* @since 1.35
*
* @param IReadableDatabase $dbr Read-only database handle
* @param int[] $userIds Array of user IDs whose groups we should look up
* @param array &$cache Array of user ID -> (array of internal group name (e.g. 'sysop') ->
* UserGroupMembership object)
* @param array &$groups Array of group name -> bool true mappings for members of a given user
* group
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onUsersPagerDoBatchLookups
(
$dbr
,
$userIds
,
&
$cache
,
&
$groups
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 13:01 (2 d, 7 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
85/96/bec115db22b322e9b509c56b0bcf
Default Alt Text
UsersPagerDoBatchLookupsHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment