‪TYPO3CMS  11.5
TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent Class Reference

Public Member Functions

 __construct (string $sourceDatabaseTable, array $groups, array $originalGroupIds, array $userData)
 
string getSourceDatabaseTable ()
 
 getGroups ()
 
 setGroups (array $groups)
 
 getOriginalGroupIds ()
 
 getUserData ()
 

Private Attributes

string $sourceDatabaseTable
 
array $groups
 
array $originalGroupIds
 
array $userData
 

Detailed Description

Event fired after user groups have been resolved for a specific user

Definition at line 23 of file AfterGroupsResolvedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::__construct ( string  $sourceDatabaseTable,
array  $groups,
array  $originalGroupIds,
array  $userData 
)

Member Function Documentation

◆ getGroups()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::getGroups ( )

List of group records including sub groups as resolved by core.

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.

Definition at line 53 of file AfterGroupsResolvedEvent.php.

References TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent\$groups.

◆ getOriginalGroupIds()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::getOriginalGroupIds ( )

List of group uids directly attached to the user

Definition at line 69 of file AfterGroupsResolvedEvent.php.

References TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent\$originalGroupIds.

◆ getSourceDatabaseTable()

string TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::getSourceDatabaseTable ( )
Returns
‪string 'be_groups' or 'fe_groups' depending on context.

Definition at line 41 of file AfterGroupsResolvedEvent.php.

References TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent\$sourceDatabaseTable.

◆ getUserData()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::getUserData ( )

Full user record with all fields

Definition at line 77 of file AfterGroupsResolvedEvent.php.

References TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent\$userData.

◆ setGroups()

TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::setGroups ( array  $groups)

List of group records as manipulated by the event.

Definition at line 61 of file AfterGroupsResolvedEvent.php.

References TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent\$groups.

Member Data Documentation

◆ $groups

◆ $originalGroupIds

array TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::$originalGroupIds
private

◆ $sourceDatabaseTable

string TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::$sourceDatabaseTable
private

◆ $userData

array TYPO3\CMS\Core\Authentication\Event\AfterGroupsResolvedEvent::$userData
private