1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
CollabLastActivityTable.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
6
7use Bitrix\Main\Entity\DataManager;
8use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
9use Bitrix\Main\ORM\Data\Internal\MergeTrait;
17
35{
36 use DeleteByFilterTrait;
37 use MergeTrait;
38
39 public static function getTableName(): string
40 {
41 return 'b_sonet_collab_last_activity';
42 }
43
44 public static function getObjectClass(): string
45 {
46 return LastActivityEntity::class;
47 }
48
49 public static function getMap(): array
50 {
51 return [
52 (new IntegerField('USER_ID'))
53 ->configurePrimary()
54 ->configureAutocomplete(false),
55
56 (new IntegerField('COLLAB_ID'))
57 ->configureRequired(),
58
59 (new DatetimeField('ACTIVITY_DATE'))
60 ->configureDefaultValueNow(),
61
62 (new Reference(
63 'USER',
64 UserTable::getEntity(),
65 Join::on('this.USER_ID', 'ref.ID')
66 ))
67 ->configureJoinType(Join::TYPE_INNER),
68
69 (new Reference(
70 'COLLAB',
71 WorkgroupTable::getEntity(),
72 Join::on('this.COLLAB_ID', 'ref.ID')
73 ))
74 ->configureJoinType(Join::TYPE_INNER),
75 (new Reference(
76 'MEMBER',
77 UserToGroupTable::getEntity(),
78 Join::on('this.COLLAB_ID', 'ref.GROUP_ID')->whereColumn('this.USER_ID', 'ref.USER_ID')
79 ))
80 ->configureJoinType(Join::TYPE_INNER),
81 ];
82 }
83}
Определения user.php:48
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804