Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
providingdata.php
1<?php
2
4
11class 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}