AfterGroupsResolvedEvent
final class \
Event fired after user groups have been resolved for a specific user
Table of Contents
Methods
- __construct() : mixed
- getGroups() : array
- List of group records including sub groups as resolved by core.
- getOriginalGroupIds() : array
- List of group uids directly attached to the user
- getSourceDatabaseTable() : string
- getUserData() : array
- Full user record with all fields
- setGroups() : void
- List of group records as manipulated by the event.
Methods
__construct()
public
__construct(string $sourceDatabaseTable, array $groups, array $originalGroupIds, array $userData) : mixed
Parameters
- $sourceDatabaseTable : string
- $groups : array
- $originalGroupIds : array
- $userData : array
getGroups()
List of group records including sub groups as resolved by core.
public
getGroups() : array
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
arraygetOriginalGroupIds()
List of group uids directly attached to the user
public
getOriginalGroupIds() : array
Return values
arraygetSourceDatabaseTable()
public
getSourceDatabaseTable() : string
Return values
string —'be_groups' or 'fe_groups' depending on context.
getUserData()
Full user record with all fields
public
getUserData() : array
Return values
arraysetGroups()
List of group records as manipulated by the event.
public
setGroups(array $groups) : void
Parameters
- $groups : array