Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
handler.php
1<?php
2
4
7
36class 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();
101 }
102}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29