Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sharinglinkmembertable.php
1<?php
2
4
5use Bitrix\Main\Entity\ReferenceField;
13
28{
34 public static function getTableName()
35 {
36 return 'b_calendar_sharing_link_member';
37 }
38
44 public static function getMap()
45 {
46 return [
47 (new IntegerField('ID',
48 []
49 ))->configureTitle(Loc::getMessage('SHARING_LINK_MEMBER_ENTITY_ID_FIELD'))
50 ->configurePrimary()
51 ,
52 (new IntegerField('LINK_ID',
53 []
54 ))->configureTitle(Loc::getMessage('SHARING_LINK_MEMBER_ENTITY_LINK_ID_FIELD'))
55 ,
56 (new IntegerField('MEMBER_ID',
57 []
58 ))->configureTitle(Loc::getMessage('SHARING_LINK_MEMBER_ENTITY_MEMBER_ID_FIELD'))
59 ,
60 (new Reference(
61 'MEMBER',
62 SharingLinkTable::class,
63 Join::on('this.LINK_ID', 'ref.ID'),
64 )),
65 (new ReferenceField(
66 'USER',
67 UserTable::getEntity(),
68 Join::on('this.MEMBER_ID', 'ref.ID'),
69 ['join_type' => Join::TYPE_LEFT]
70 )),
71 (new ReferenceField(
72 'IMAGE',
73 FileTable::class,
74 Join::on('this.USER.PERSONAL_PHOTO', 'ref.ID'),
75 ['join_type' => Join::TYPE_LEFT]
76 ))
77 ];
78 }
79}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29