1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
anchortable.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Im\Model;
6
7use Bitrix\Main\ORM\Data\DataManager;
8use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
9use Bitrix\Main\ORM\Fields\IntegerField;
10use Bitrix\Main\ORM\Fields\Relations\Reference;
11use Bitrix\Main\ORM\Fields\StringField;
12use Bitrix\Main\ORM\Query\Join;
13
15{
16 use DeleteByFilterTrait;
17
18 public static function getTableName(): string
19 {
20 return 'b_im_anchor';
21 }
22
23 public static function getMap(): array
24 {
25 return [
26 (new IntegerField('ID'))
27 ->configurePrimary()
28 ->configureAutocomplete(),
29
30 (new IntegerField('MESSAGE_ID'))
31 ->configureRequired(),
32
33 (new IntegerField('CHAT_ID'))
34 ->configureRequired(),
35
36 (new IntegerField('USER_ID'))
37 ->configureRequired(),
38
39 (new IntegerField('FROM_USER_ID'))
40 ->configureRequired(),
41
42 (new StringField('TYPE'))
43 ->configureRequired(),
44
45 (new StringField('SUB_TYPE'))
46 ->configureNullable()
47 ->configureDefaultValue(null),
48
49 (new Reference('MESSAGE', MessageTable::getEntity(), Join::on('this.MESSAGE_ID', 'ref.ID')))
50 ->configureJoinType(Join::TYPE_INNER),
51 ];
52 }
53}
static getMap()
Определения anchortable.php:23
static getTableName()
Определения anchortable.php:18
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804