CBPHelper::getUserExtendedGroups: Bitrix method

      
<?php 
//  CBPHelper :: getUserExtendedGroups()
//  /dist/bitrix/modules/bizproc/classes/general/helper.php:2209

    
public static function getUserExtendedGroups($userId)
    {
        if (!isset(
self::$groupsCache[$userId]))
        {
            
self::$groupsCache[$userId] = array();
            
$access self::getAccessProvider();
            
$userCodes $access->GetUserCodesArray($userId);
            foreach (
$userCodes AS $code)
            {
                
self::$groupsCache[$userId][] = 'group_'.strtolower($code);
            }
        }
        return 
self::$groupsCache[$userId];
    }