Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sharinglinkmembertable.php
1
<?php
2
3
namespace
Bitrix\Calendar\Internals
;
4
5
use Bitrix\Main\Entity\ReferenceField;
6
use
Bitrix\Main\FileTable
;
7
use
Bitrix\Main\Localization\Loc
;
8
use
Bitrix\Main\ORM\Data\DataManager
;
9
use
Bitrix\Main\ORM\Fields\IntegerField
;
10
use
Bitrix\Main\ORM\Fields\Relations\Reference
;
11
use
Bitrix\Main\ORM\Query\Join
;
12
use
Bitrix\Main\UserTable
;
13
27
class
SharingLinkMemberTable
extends
DataManager
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
}
Bitrix\Calendar\Internals\SharingLinkMemberTable
Definition
sharinglinkmembertable.php:28
Bitrix\Calendar\Internals\SharingLinkMemberTable\getMap
static getMap()
Definition
sharinglinkmembertable.php:44
Bitrix\Calendar\Internals\SharingLinkMemberTable\getTableName
static getTableName()
Definition
sharinglinkmembertable.php:34
Bitrix\Main\FileTable
Definition
file.php:45
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\Relations\Reference
Definition
reference.php:26
Bitrix\Main\ORM\Query\Join
Definition
join.php:19
Bitrix\Main\UserTable
Definition
user.php:46
Bitrix\Calendar\Internals
Definition
access.php:3
modules
calendar
lib
internals
sharinglinkmembertable.php
Создано системой
1.10.0