Documentation

getDataResult

\Bitrix\Main\Service\GeoIp\Result public static
\Bitrix\Main\Service\GeoIp\Manager::getDataResult(
 string $ip = '',
 string $lang = '',
 array $required = array()
);

Static method returns either \Bitrix\Main\Service\GeoIp\Result or \Bitrix\Main\Service\GeoIp\Manager::INFO_NOT_AVAILABLE.

Parameters

ParameterDescriptionVersion
$ipIP address.
$langLanguage ID.
$requiredList of fields (from \Bitrix\Main\Service\GeoIp\Data) with required information. All available handlers will be searched until the one handler is found that will provide all required information. In case when no handler is found that is capable to get the required data, returns \Bitrix\Main\Service\GeoIp\Manager::INFO_NOT_AVAILABLE.

Examples



© «Bitrix24», 2001-2024
Up