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
Parameter | Description | Version |
---|---|---|
$ip | IP address. | |
$lang | Language ID. | |
$required | List 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