Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
providingdata.php
1
<?php
2
3
namespace
Bitrix\Main\Service\GeoIp
;
4
11
class
ProvidingData
extends
Data
12
{
13
public
static
function
createForCountry
():
ProvidingData
14
{
15
$data =
new
static
();
16
$data->continentName =
true
;
17
$data->continentCode =
true
;
18
$data->countryName =
true
;
19
$data->countryCode =
true
;
20
21
return
$data;
22
}
23
24
public
static
function
createForCity
():
ProvidingData
25
{
26
$data = static::createForCountry();
27
28
$data->regionName =
true
;
29
$data->regionCode =
true
;
30
$data->subRegionName =
true
;
31
$data->subRegionCode =
true
;
32
$data->cityName =
true
;
33
$data->cityGeonameId =
true
;
34
$data->latitude =
true
;
35
$data->longitude =
true
;
36
$data->timezone =
true
;
37
$data->zipCode =
true
;
38
$data->ispName =
true
;
39
$data->organizationName =
true
;
40
$data->asn =
true
;
41
$data->asnOrganizationName =
true
;
42
43
return
$data;
44
}
45
}
Bitrix\Main\Service\GeoIp\Data
Definition
data.php:12
Bitrix\Main\Service\GeoIp\ProvidingData
Definition
providingdata.php:12
Bitrix\Main\Service\GeoIp\ProvidingData\createForCountry
static createForCountry()
Definition
providingdata.php:13
Bitrix\Main\Service\GeoIp\ProvidingData\createForCity
static createForCity()
Definition
providingdata.php:24
Bitrix\Main\Service\GeoIp
Definition
base.php:3
modules
main
lib
service
geoip
providingdata.php
Создано системой
1.10.0