GeoIP 4.0

\BXmaker\GeoIP\Service\DadataRu

\BXmaker\GeoIP\Service\DadataRu -

namespace BXmaker\GeoIP\Service;
class DadataRu extends \BXmaker\GeoIP\Service\Base
{
    //...
}

Методы

canUseOnClient

public static function canUseOnClient();

canUseOnServer

public static function canUseOnServer();

createServiceGeoDataByResponse

Создаст объект с результатом геопозии на основе ответа сервиса

/**
 * @param $result
 * @return \BXmaker\GeoIP\Service\Data|null
 */
protected function createServiceGeoDataByResponse($result);

getClientData

Вернет данные для клиентской стороны, которые позволят загрузить расширение и определить геолокацию

/**
 * @return array
 */
public function getClientData($arParams = []);

getCode

public static function getCode();

getConfig

public static function getConfig();

getData

public function getData(string $ip, string $lang = 'ru');

getDataByClientSideServiceResponse

/**
 * @inheritDoc
 */
public function getDataByClientSideServiceResponse($response, $clientSideServiceData);

getDescription

public static function getDescription();

getMessage

/**
 * @inheritDoc
 */
public static function getMessage($name, $arReplace = null);

getName

public static function getName();