MediaWiki
master
UserGroupsChangedHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\User\Hook
;
4
5
use
MediaWiki\User\User
;
6
use
MediaWiki\User\UserGroupMembership
;
7
use
MediaWiki\User\UserIdentity
;
8
16
interface
UserGroupsChangedHook
{
35
public
function
onUserGroupsChanged
(
36
$user,
37
$added,
38
$removed,
39
$performer,
40
$reason,
41
$oldUGMs,
42
$newUGMs
43
);
44
}
MediaWiki\User\UserGroupMembership
Represents a "user group membership" – a specific instance of a user belonging to a group.
Definition
UserGroupMembership.php:40
MediaWiki\User\User
internal since 1.36
Definition
User.php:93
MediaWiki\User\Hook\UserGroupsChangedHook
This is a hook handler interface, see docs/Hooks.md.
Definition
UserGroupsChangedHook.php:16
MediaWiki\User\Hook\UserGroupsChangedHook\onUserGroupsChanged
onUserGroupsChanged( $user, $added, $removed, $performer, $reason, $oldUGMs, $newUGMs)
This hook is called after user groups are changed.
MediaWiki\User\UserIdentity
Interface for objects representing user identity.
Definition
UserIdentity.php:39
MediaWiki\User\Hook
Definition
AutopromoteConditionHook.php:3
includes
user
Hook
UserGroupsChangedHook.php
Generated on Wed Sep 18 2024 12:25:45 for MediaWiki by
1.10.0