joinUsersToTasks: Bitrix method

      
<?php 
//  joinUsersToTasks()
//  /dist/bitrix/modules/bizproc/classes/general/viewhelper.php:99

    
protected static function joinUsersToTasks(&$tasks, &$taskUsers$extendUserInfo false)
    {
        
$allUsers = array();
        foreach (
$tasks as &$t)
        {
            
$t['USERS'] = array();
            
$t['USERS_CNT'] = 0;
            if (isset(
$taskUsers[$t['ID']]))
            {
                foreach (
$taskUsers[$t['ID']] as $u)
                {
                    if (
$extendUserInfo)
                    {
                        if (empty(
$u['FULL_NAME']))
                            
$u['FULL_NAME'] = self::getUserFullName($u);
                        if (empty(
$u['PHOTO_SRC']))
                            
$u['PHOTO_SRC'] = self::getUserPhotoSrc($u);
                    }
                    
$t['USERS'][] = $u;
                    
$t['USERS_CNT'] = sizeof($t['USERS']);
                    
$allUsers[] = $u;
                }
            }
        }
        return 
$allUsers;
    }