Method to return a list of user groups mapped to a user. The returned list can optionally hold only the groups explicitly mapped to the user or all groups both explicitly mapped and inherited by the user.
Signature
public function getGroupsByUser(integer
$userId,
[boolean
$recursive = true] )
Parameters
$userId
Id of the user for which to get the list of groups.
$recursive
True to include inherited user groups.
Returns
array
List of user group ids to which the user is mapped.
Tasks
Line
Task
292
Uncouple this from JComponentHelper and allow for a configuration setting or value injection.