1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
handler.php
См. документацию.
1<?php
2
3namespace Bitrix\Main\Service\GeoIp;
4
5use Bitrix\Main\Localization\Loc;
6use Bitrix\Main\ORM\Data\DataManager;
7use Bitrix\Main\ORM\Fields\Validators\LengthValidator;
8
36
38{
44 public static function getTableName()
45 {
46 return 'b_geoip_handlers';
47 }
48
54 public static function getMap()
55 {
56 return array(
57 'ID' => array(
58 'data_type' => 'integer',
59 'primary' => true,
60 'autocomplete' => true,
61 'title' => Loc::getMessage('MAIN_SRV_GEOIP_HNDL_ENTITY_ID_FIELD'),
62 ),
63 'SORT' => array(
64 'data_type' => 'integer',
65 'title' => Loc::getMessage('MAIN_SRV_GEOIP_HNDL_ENTITY_SORT_FIELD'),
66 ),
67 'ACTIVE' => array(
68 'data_type' => 'boolean',
69 'values' => array('N', 'Y'),
70 'title' => Loc::getMessage('MAIN_SRV_GEOIP_HNDL_ENTITY_ACTIVE_FIELD'),
71 ),
72 'CLASS_NAME' => array(
73 'data_type' => 'string',
74 'required' => true,
75 'validation' => array(__CLASS__, 'validateClassName'),
76 'title' => Loc::getMessage('MAIN_SRV_GEOIP_HNDL_ENTITY_CLASS_NAME_FIELD'),
77 ),
78 'CONFIG' => array(
79 'data_type' => 'text',
80 'serialized' => true,
81 'title' => Loc::getMessage('MAIN_SRV_GEOIP_HNDL_ENTITY_CONFIG_FIELD'),
82 ),
83 );
84 }
85
91 public static function validateClassName()
92 {
93 return array(
94 new LengthValidator(null, 255),
95 );
96 }
97
98 public static function cleanCache(): void
99 {
100 parent::cleanCache();
102 }
103}
static cleanCache()
Определения handler.php:98
static validateClassName()
Определения handler.php:91
static getTableName()
Определения handler.php:44
static cleanCache()
Определения manager.php:652
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804