Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
GroupTable.php
1<?php
3
10
12{
13 public static function getTableName()
14 {
15 return 'b_ui_avatar_mask_group';
16 }
17
18 public static function getMap()
19 {
20 return [
21 (new IntegerField('ID'))
22 ->configurePrimary()
23 ->configureAutocomplete(),
24 (new DatetimeField('TIMESTAMP_X'))
25 ->configureRequired()
26 ->configureDefaultValue(function() {
27 return new DateTime();
28 }),
29 (new StringField('OWNER_TYPE'))->configureRequired()->configureSize(100),
30 (new StringField('OWNER_ID', []))->configureRequired()->configureSize(20),
31 (new IntegerField('SORT', []))->configureDefaultValue(100),
32
33 (new StringField('TITLE'))->configureRequired(),
34 new TextField('DESCRIPTION'),
35 ];
36 }
37}