Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
handler.php
1
<?php
2
3
namespace
Bitrix\Main\Service\GeoIp
;
4
5
use
Bitrix\Main\Entity
;
6
use
Bitrix\Main\Localization\Loc
;
7
36
class
HandlerTable
extends
Entity\DataManager
37
{
43
public
static
function
getTableName
()
44
{
45
return
'b_geoip_handlers'
;
46
}
47
53
public
static
function
getMap
()
54
{
55
return
array(
56
'ID'
=> array(
57
'data_type'
=>
'integer'
,
58
'primary'
=>
true
,
59
'autocomplete'
=>
true
,
60
'title'
=>
Loc::getMessage
(
'MAIN_SRV_GEOIP_HNDL_ENTITY_ID_FIELD'
),
61
),
62
'SORT'
=> array(
63
'data_type'
=>
'integer'
,
64
'title'
=>
Loc::getMessage
(
'MAIN_SRV_GEOIP_HNDL_ENTITY_SORT_FIELD'
),
65
),
66
'ACTIVE'
=> array(
67
'data_type'
=>
'boolean'
,
68
'values'
=> array(
'N'
,
'Y'
),
69
'title'
=>
Loc::getMessage
(
'MAIN_SRV_GEOIP_HNDL_ENTITY_ACTIVE_FIELD'
),
70
),
71
'CLASS_NAME'
=> array(
72
'data_type'
=>
'string'
,
73
'required'
=>
true
,
74
'validation'
=> array(__CLASS__,
'validateClassName'
),
75
'title'
=>
Loc::getMessage
(
'MAIN_SRV_GEOIP_HNDL_ENTITY_CLASS_NAME_FIELD'
),
76
),
77
'CONFIG'
=> array(
78
'data_type'
=>
'text'
,
79
'serialized'
=>
true
,
80
'title'
=>
Loc::getMessage
(
'MAIN_SRV_GEOIP_HNDL_ENTITY_CONFIG_FIELD'
),
81
),
82
);
83
}
84
90
public
static
function
validateClassName
()
91
{
92
return
array(
93
new
Entity
\Validator\Length(
null
, 255),
94
);
95
}
96
97
public
static
function
cleanCache
(): void
98
{
99
parent::cleanCache();
100
Manager::cleanCache
();
101
}
102
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Main\Service\GeoIp\HandlerTable
Definition
handler.php:37
Bitrix\Main\Service\GeoIp\HandlerTable\getMap
static getMap()
Definition
handler.php:53
Bitrix\Main\Service\GeoIp\HandlerTable\cleanCache
static cleanCache()
Definition
handler.php:97
Bitrix\Main\Service\GeoIp\HandlerTable\validateClassName
static validateClassName()
Definition
handler.php:90
Bitrix\Main\Service\GeoIp\HandlerTable\getTableName
static getTableName()
Definition
handler.php:43
Bitrix\Main\Service\GeoIp\Manager\cleanCache
static cleanCache()
Definition
manager.php:644
Bitrix\Main\Service\GeoIp
Definition
base.php:3
modules
main
lib
service
geoip
handler.php
Создано системой
1.10.0