Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
eventconnectiontable.php
1
<?php
2
namespace
Bitrix\Calendar\Internals
;
3
4
use Bitrix\Dav\Internals\DavConnectionTable;
5
use
Bitrix\Main\ArgumentException
;
6
use Bitrix\Main\Entity\IntegerField;
7
use Bitrix\Main\Entity\ReferenceField;
8
use
Bitrix\Main\ORM\Data\DataManager
;
9
use
Bitrix\Main\ORM\Fields\ArrayField
;
10
use
Bitrix\Main\ORM\Fields\StringField
;
11
use
Bitrix\Main\ORM\Query\Join
;
12
use
Bitrix\Main\SystemException
;
13
14
// TODO: localization
15
// TODO: add class description
16
33
class
EventConnectionTable
extends
DataManager
34
{
35
public
static
function
getTableName
()
36
{
37
return
'b_calendar_event_connection'
;
38
}
39
46
public
static
function
getMap
()
47
{
48
return
[
49
(
new
IntegerField
(
'ID'
))
50
->configurePrimary()
51
->configureAutocomplete()
52
,
53
(
new
IntegerField
(
'EVENT_ID'
))
54
->configureRequired()
55
,
56
(
new
IntegerField
(
'CONNECTION_ID'
))
57
->configureRequired()
58
,
59
(
new
StringField
(
'VENDOR_EVENT_ID'
))
60
->configureSize(255)
61
,
62
(
new
StringField
(
'SYNC_STATUS'
))
63
->configureNullable()
64
->configureSize(20)
65
,
66
(
new
IntegerField
(
'RETRY_COUNT'
))
67
->configureDefaultValue(0)
68
,
69
(
new
StringField
(
'ENTITY_TAG'
))
70
->configureNullable()
71
->configureSize(255)
72
,
73
(
new
StringField
(
'VENDOR_VERSION_ID'
))
74
->configureNullable()
75
->configureSize(255)
76
,
77
(
new
StringField
(
'VERSION'
))
78
->configureNullable()
79
->configureSize(255)
80
,
81
(
new
ArrayField
(
'DATA'
))
82
->configureNullable()
83
,
84
(
new
StringField
(
'RECURRENCE_ID'
))
85
->configureNullable()
86
->configureSize(255)
87
,
88
(
new
ReferenceField(
89
'EVENT'
,
90
EventTable::class,
91
Join::on(
'this.EVENT_ID'
,
'ref.ID'
),
92
)),
93
(
new
ReferenceField(
94
'CONNECTION'
,
95
DavConnectionTable::class,
96
Join::on(
'this.CONNECTION_ID'
,
'ref.ID'
),
97
)),
98
];
99
}
100
}
Bitrix\Calendar\Internals\EventConnectionTable
Definition
eventconnectiontable.php:34
Bitrix\Calendar\Internals\EventConnectionTable\getMap
static getMap()
Definition
eventconnectiontable.php:46
Bitrix\Calendar\Internals\EventConnectionTable\getTableName
static getTableName()
Definition
eventconnectiontable.php:35
Bitrix\Main\ArgumentException
Definition
exception.php:34
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\ArrayField
Definition
arrayfield.php:19
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Main\ORM\Query\Join
Definition
join.php:19
Bitrix\Main\SystemException
Definition
exception.php:8
Bitrix\Calendar\Internals
Definition
access.php:3
modules
calendar
lib
internals
eventconnectiontable.php
Создано системой
1.10.0