Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс 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 (Web\IpAddress $ipAddress, string $handler)
 
static getFromStore (Web\IpAddress $ipAddress, string $handler)
 
static findForIp (Web\IpAddress $ipAddress, array $records, string $lang)
 
static saveToStore (Web\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 строка 27

Методы

◆ cleanCache()

static cleanCache ( )
static

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

◆ findForIp()

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

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

◆ getCacheId()

static getCacheId ( Web\IpAddress $ipAddress,
string $handler )
staticprotected

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

◆ getCacheTtl()

static getCacheTtl ( )
staticprotected

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

◆ getCityName()

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

Get the full city name.

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

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

◆ getCityPostCode()

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

Get the Postal Code, FSA or Zip Code.

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

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

◆ getCountryCode()

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

Get the two letters country code.

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

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

◆ getCountryName()

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

Get the full country name.

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

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

◆ getDataResult()

static 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 строка 191

◆ getFromStore()

static getFromStore ( Web\IpAddress $ipAddress,
string $handler )
staticprotected

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

◆ getGeoPosition()

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

Get geo-position attribute.

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

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

◆ getGeoPositionLatitude()

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

Get the Latitude as signed double.

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

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

◆ getGeoPositionLongitude()

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

Get the Longitude as signed double.

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

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

◆ getHandlerAdminConfigHtml()

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

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

◆ getHandlerByClassName()

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

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

◆ getHandlers()

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

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

◆ getIspName()

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

Get the Internet Service Provider (ISP) name.

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

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

◆ getLogger()

static getLogger ( )
staticprotected

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

◆ getOrganizationName()

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

Get the organization name.

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

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

◆ getRealIp()

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

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

◆ getTimezoneName()

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

Get the time zone for country and region code combo.

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

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

◆ saveToStore()

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

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

◆ setLogErrors()

static setLogErrors ( $isLog)
static

Turn on / off error logging for debugging purposes.

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

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

Данные класса

◆ $data

$data = []
staticprotected

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

◆ $handlers

$handlers = null
staticprotected

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

◆ $logErrors

$logErrors = false
staticprotected

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

◆ $logger

$logger
staticprotected

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

◆ CACHE_DIR

const CACHE_DIR = 'geoip_manager'
protected

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

◆ INFO_NOT_AVAILABLE

const INFO_NOT_AVAILABLE = null

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