Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
entityformconfigtable.php
1<?php
2
4
6
23class EntityFormConfigTable extends Entity\DataManager
24{
25 public static function getTableName()
26 {
27 return 'b_ui_entity_editor_config';
28 }
29
30 public static function getMap()
31 {
32 return [
33 new Entity\IntegerField('ID', [
34 'autocomplete' => true,
35 'primary' => true
36 ]),
37 new Entity\StringField('CATEGORY', [
38 'required' => true,
39 'size' => 20
40 ]),
41 new Entity\StringField('ENTITY_TYPE_ID', [
42 'required' => true,
43 'size' => 60
44 ]),
45 new Entity\StringField('NAME', [
46 'required' => true,
47 'size' => 100
48 ]),
49 new Entity\TextField('CONFIG', [
50 'serialized' => true,
51 'required' => true
52 ]),
53 new Entity\BooleanField('COMMON', [
54 'values' => ['N', 'Y'],
55 'required' => true,
56 'default_value' => 'N'
57 ])
58 ];
59 }
60}