1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
GroupTable.php
См. документацию.
1<?php
2namespace Bitrix\UI\Avatar\Model;
3
4use Bitrix\Main\ORM;
5use Bitrix\Main\ORM\Fields\DatetimeField;
6use Bitrix\Main\ORM\Fields\IntegerField;
7use Bitrix\Main\ORM\Fields\StringField;
8use Bitrix\Main\ORM\Fields\TextField;
9use Bitrix\Main\Type\DateTime;
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}
Определения group.php:32
static getMap()
Определения GroupTable.php:18
static getTableName()
Определения GroupTable.php:13