Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
areatable.php
1<?php
2
4
8
9class AreaTable extends DataManager
10{
14 public static function getTableName()
15 {
16 return 'b_location_area';
17 }
18
22 public static function getMap()
23 {
24 return [
25 (new Fields\IntegerField('ID'))
26 ->configurePrimary(true)
27 ->configureAutocomplete(true),
28 (new Fields\StringField('TYPE'))
29 ->configureRequired(true)
30 ->addValidator(new LengthValidator(1, 255)),
31 (new Fields\StringField('CODE'))
32 ->addValidator(new LengthValidator(null, 255)),
33 (new Fields\IntegerField('SORT'))
34 ->configureDefaultValue(100),
35 (new Fields\StringField('GEOMETRY'))
36 ->configureRequired(true),
37 ];
38 }
39}