Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventconnectiontable.php
1<?php
3
4use Bitrix\Dav\Internals\DavConnectionTable;
6use Bitrix\Main\Entity\IntegerField;
7use Bitrix\Main\Entity\ReferenceField;
13
14// TODO: localization
15// TODO: add class description
16
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}