1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Manager

Открытые статические члены

static getCountryCode ($ip='', $lang='')
static getCountryName ($ip='', $lang='')
static getCityName ($ip='', $lang='')
static getCityPostCode ($ip='', $lang='')
static getGeoPosition ($ip='', $lang='')
static getGeoPositionLatitude ($ip='', $lang='')
static getGeoPositionLongitude ($ip='', $lang='')
static getOrganizationName ($ip='', $lang='')
static getIspName ($ip='', $lang='')
static getTimezoneName ($ip='', $lang='')
static getDataResult ($ip='', $lang='', array $required=[])
static getRealIp ()
static getHandlers ()
static getHandlerByClassName ($className)
static setLogErrors ($isLog)
static getHandlerAdminConfigHtml (Base $handler)
static cleanCache ()

Поля данных

const INFO_NOT_AVAILABLE = null

Защищенные статические члены

static getCacheId (IpAddress $ipAddress, string $handler)
static getFromStore (IpAddress $ipAddress, string $handler)
static findForIp (IpAddress $ipAddress, array $records, string $lang)
static saveToStore (IpAddress $ipAddress, array $records, Data $geoData, string $lang)
static getCacheTtl ()
static getLogger ()

Защищенные данные

const CACHE_DIR = 'geoip_manager'

Статические защищенные данные

static $handlers = null
static $data = []
static $logErrors = false
static $logger

Подробное описание

См. определение в файле manager.php строка 28

Методы

◆ cleanCache()

cleanCache ( )
static

См. определение в файле manager.php строка 652

◆ findForIp()

findForIp ( IpAddress $ipAddress,
array $records,
string $lang )
staticprotected

См. определение в файле manager.php строка 342

◆ getCacheId()

getCacheId ( IpAddress $ipAddress,
string $handler )
staticprotected

См. определение в файле manager.php строка 309

◆ getCacheTtl()

getCacheTtl ( )
staticprotected

См. определение в файле manager.php строка 646

◆ getCityName()

getCityName ( $ip = '',
$lang = '' )
static

Get the full city name.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
string|null

См. определение в файле manager.php строка 73

◆ getCityPostCode()

getCityPostCode ( $ip = '',
$lang = '' )
static

Get the Postal Code, FSA or Zip Code.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
string|null

См. определение в файле manager.php строка 85

◆ getCountryCode()

getCountryCode ( $ip = '',
$lang = '' )
static

Get the two letters country code.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
string

См. определение в файле manager.php строка 49

◆ getCountryName()

getCountryName ( $ip = '',
$lang = '' )
static

Get the full country name.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
string

См. определение в файле manager.php строка 61

◆ getDataResult()

getDataResult ( $ip = '',
$lang = '',
array $required = [] )
static

Get the all available information about geolocation.

Аргументы
string$ipIp address.
string$langLanguage identifier.
array$requiredRequired fields for result data.
Возвращает
Result | null

См. определение в файле manager.php строка 188

◆ getFromStore()

getFromStore ( IpAddress $ipAddress,
string $handler )
staticprotected

См. определение в файле manager.php строка 314

◆ getGeoPosition()

getGeoPosition ( $ip = '',
$lang = '' )
static

Get geo-position attribute.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
array|null

См. определение в файле manager.php строка 97

◆ getGeoPositionLatitude()

getGeoPositionLatitude ( $ip = '',
$lang = '' )
static

Get the Latitude as signed double.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
string

См. определение в файле manager.php строка 126

◆ getGeoPositionLongitude()

getGeoPositionLongitude ( $ip = '',
$lang = '' )
static

Get the Longitude as signed double.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
string

См. определение в файле manager.php строка 138

◆ getHandlerAdminConfigHtml()

getHandlerAdminConfigHtml ( Base $handler)
static
Аргументы
Base$handler
Возвращает
string Config HTML for admin interface form.

См. определение в файле manager.php строка 595

◆ getHandlerByClassName()

getHandlerByClassName ( $className)
static
Аргументы
string$className. Class name of handler.
Возвращает
Base | null Handler.

См. определение в файле manager.php строка 572

◆ getHandlers()

getHandlers ( )
static
Возвращает
Base[] Handlers list.

См. определение в файле manager.php строка 558

◆ getIspName()

getIspName ( $ip = '',
$lang = '' )
static

Get the Internet Service Provider (ISP) name.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
string

См. определение в файле manager.php строка 162

◆ getLogger()

getLogger ( )
staticprotected

См. определение в файле manager.php строка 658

◆ getOrganizationName()

getOrganizationName ( $ip = '',
$lang = '' )
static

Get the organization name.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
string

См. определение в файле manager.php строка 150

◆ getRealIp()

getRealIp ( )
static
Возвращает
string IPv4 address.

См. определение в файле manager.php строка 532

◆ getTimezoneName()

getTimezoneName ( $ip = '',
$lang = '' )
static

Get the time zone for country and region code combo.

Аргументы
string$ipIp address.
string$langLanguage identifier.
Возвращает
string|null

См. определение в файле manager.php строка 174

◆ saveToStore()

saveToStore ( IpAddress $ipAddress,
array $records,
Data $geoData,
string $lang )
staticprotected

См. определение в файле manager.php строка 367

◆ setLogErrors()

setLogErrors ( $isLog)
static

Turn on / off error logging for debugging purposes.

Аргументы
bool$isLog

См. определение в файле manager.php строка 586

Поля

◆ $data

$data = []
staticprotected

См. определение в файле manager.php строка 37

◆ $handlers

$handlers = null
staticprotected

См. определение в файле manager.php строка 35

◆ $logErrors

$logErrors = false
staticprotected

См. определение в файле manager.php строка 39

◆ $logger

$logger
staticprotected

См. определение в файле manager.php строка 41

◆ CACHE_DIR

const CACHE_DIR = 'geoip_manager'
protected

См. определение в файле manager.php строка 32

◆ INFO_NOT_AVAILABLE

const INFO_NOT_AVAILABLE = null

См. определение в файле manager.php строка 31


Объявления и описания членов классов находятся в файлах:
  • C:/bitrix/modules/main/lib/service/geoip/manager.php
  • C:/bitrix/modules/sale/lib/delivery/services/manager.php