• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/addressverification.php
  • Класс: BitrixVoximplantAddressVerification
  • Вызов: AddressVerification::getVerifications
public function getVerifications($countryCode = '', $phoneCategoryName = '', $phoneRegionCode = '', $verified = null, $inProgress = null)
{
	$httpClient = new CVoxImplantHttp();
	$result = (array)$httpClient->GetVerifications($countryCode, $phoneCategoryName, $phoneRegionCode, $verified, $inProgress);
	if ($result)
	{
		if (isset($result['VERIFIED_ADDRESS']) && is_array($result['VERIFIED_ADDRESS']))
		{
			foreach ($result['VERIFIED_ADDRESS'] as &$address)
			{
				$address = (array)$address;
				if (isset($address['COUNTRY_CODE']))
				{
					$address['COUNTRY'] = Loc::getMessage('VI_PHONE_CODE_' . $address['COUNTRY_CODE']);
				}

				if (isset($address['STATUS']))
				{
					$address['STATUS_NAME'] = CVoxImplantDocuments::GetStatusName($address['STATUS']);
				}
			}
		}
		return $result;
	}
	else
	{
		$this->error = new CVoxImplantError(__METHOD__, $httpClient->GetError()->code, $httpClient->GetError()->msg);
		return false;
	}
}