AfterGroupsResolvedEvent
FinalYes
Event fired after user groups have been resolved for a specific user
Table of Contents
Methods
- __construct() : mixed
- getGroups() : array<string|int, mixed>
- List of group records including sub groups as resolved by core.
- getOriginalGroupIds() : array<string|int, mixed>
- List of group uids directly attached to the user
- getSourceDatabaseTable() : string
- getUserData() : array<string|int, mixed>
- Full user record with all fields
- setGroups() : void
- List of group records as manipulated by the event.
Methods
__construct()
public
__construct(string $sourceDatabaseTable, array<string|int, mixed> $groups, array<string|int, mixed> $originalGroupIds, array<string|int, mixed> $userData) : mixed
Parameters
- $sourceDatabaseTable : string
- $groups : array<string|int, mixed>
- $originalGroupIds : array<string|int, mixed>
- $userData : array<string|int, mixed>
getGroups()
List of group records including sub groups as resolved by core.
public
getGroups() : array<string|int, mixed>
Note order is important: A user with main groups "1,2", where 1 has sub group 3, results in "3,1,2" as record list array - sub groups are listed before the group that includes the sub group.
Return values
array<string|int, mixed>getOriginalGroupIds()
List of group uids directly attached to the user
public
getOriginalGroupIds() : array<string|int, mixed>
Return values
array<string|int, mixed>getSourceDatabaseTable()
public
getSourceDatabaseTable() : string
Return values
string —'be_groups' or 'fe_groups' depending on context.
getUserData()
Full user record with all fields
public
getUserData() : array<string|int, mixed>
Return values
array<string|int, mixed>setGroups()
List of group records as manipulated by the event.
public
setGroups(array<string|int, mixed> $groups) : void
Parameters
- $groups : array<string|int, mixed>