Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
base.php
1
<?php
2
3
namespace
Bitrix\Main\Service\GeoIp
;
4
11
abstract
class
Base
12
{
13
protected
$id
;
14
protected
$sort
;
15
protected
$active
;
16
protected
$config
;
17
22
public
function
__construct
(array $fields = array())
23
{
24
$this->
id
= isset($fields[
'ID'
]) ? intval($fields[
'ID'
]) : 0;
25
$this->sort = isset($fields[
'SORT'
]) ? intval($fields[
'SORT'
]) : 100;
26
$this->active = isset($fields[
'ACTIVE'
]) && $fields[
'ACTIVE'
] ==
'Y'
?
'Y'
:
'N'
;
27
$this->config = isset($fields[
'CONFIG'
]) && is_array($fields[
'CONFIG'
]) ? $fields[
'CONFIG'
] : array();
28
}
29
33
public
function
getId
()
34
{
35
return
$this->id
;
36
}
37
41
public
function
getSort
()
42
{
43
return
$this->sort
;
44
}
45
49
public
function
isActive
()
50
{
51
return
$this->active ==
'Y'
;
52
}
53
57
abstract
public
function
getTitle
();
58
62
abstract
public
function
getDescription
();
63
69
abstract
public
function
getDataResult
($ip, $lang =
''
);
70
75
public
function
getSupportedLanguages
()
76
{
77
return
array();
78
}
79
84
public
function
isInstalled
()
85
{
86
return
true
;
87
}
88
92
public
function
getConfigForAdmin
()
93
{
94
return
array();
95
}
96
101
public
function
createConfigField
(array $postFields)
102
{
103
return
array();
104
}
105
109
public
function
getProvidingData
()
110
{
111
return
new
ProvidingData
();
112
}
113
}
Bitrix\Main\Service\GeoIp\Base
Definition
base.php:12
Bitrix\Main\Service\GeoIp\Base\getId
getId()
Definition
base.php:33
Bitrix\Main\Service\GeoIp\Base\getConfigForAdmin
getConfigForAdmin()
Definition
base.php:92
Bitrix\Main\Service\GeoIp\Base\getProvidingData
getProvidingData()
Definition
base.php:109
Bitrix\Main\Service\GeoIp\Base\getDescription
getDescription()
Bitrix\Main\Service\GeoIp\Base\$config
$config
Definition
base.php:16
Bitrix\Main\Service\GeoIp\Base\$sort
$sort
Definition
base.php:14
Bitrix\Main\Service\GeoIp\Base\getSupportedLanguages
getSupportedLanguages()
Definition
base.php:75
Bitrix\Main\Service\GeoIp\Base\__construct
__construct(array $fields=array())
Definition
base.php:22
Bitrix\Main\Service\GeoIp\Base\getTitle
getTitle()
Bitrix\Main\Service\GeoIp\Base\getSort
getSort()
Definition
base.php:41
Bitrix\Main\Service\GeoIp\Base\createConfigField
createConfigField(array $postFields)
Definition
base.php:101
Bitrix\Main\Service\GeoIp\Base\isActive
isActive()
Definition
base.php:49
Bitrix\Main\Service\GeoIp\Base\$active
$active
Definition
base.php:15
Bitrix\Main\Service\GeoIp\Base\getDataResult
getDataResult($ip, $lang='')
Bitrix\Main\Service\GeoIp\Base\$id
$id
Definition
base.php:13
Bitrix\Main\Service\GeoIp\Base\isInstalled
isInstalled()
Definition
base.php:84
Bitrix\Main\Service\GeoIp\ProvidingData
Definition
providingdata.php:12
Bitrix\Main\Service\GeoIp
Definition
base.php:3
modules
main
lib
service
geoip
base.php
Создано системой
1.10.0