CBitrixCloudMobile::getUserDevices: Bitrix method

      
<?php 
//  CBitrixCloudMobile :: getUserDevices()
//  /dist/bitrix/modules/bitrixcloud/classes/general/mobile.php:46

    
public static function getUserDevices($userId)
    {
        
$arResult = array();

        if(
CModule::IncludeModule("pull"))
        {
            
$dbres CPullPush::GetList(Array(), Array("USER_ID" => $userId));
            while(
$arDb $dbres->Fetch())
            {
                if(
$arDb["DEVICE_TYPE"] == "APPLE")
                {
                    
CModule::IncludeModule("mobileapp");
                    
CMobile::Init();

/*                    if(CMobile::$isDev)
                        $protocol = 1;
                    else */
                        
$protocol 2;
                }
                else
                    
$protocol 3;

                
$arResult[] = $arDb["DEVICE_TOKEN"].":".$protocol.":BitrixAdmin";
            }
        }

        return 
$arResult;
    }