1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
OpenEventOptionTable.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\OpenEvents\Internals;
4
5use Bitrix\Calendar\Internals\EventTable;
6use Bitrix\Calendar\OpenEvents\Internals\Entity\OpenEventOption as OpenEventOption;
7use Bitrix\Main\Entity\ReferenceField;
8use Bitrix\Main\Entity\TextField;
9use Bitrix\Main\ORM\Data\DataManager;
10use Bitrix\Main\ORM\Fields\IntegerField;
11use Bitrix\Main\ORM\Query\Join;
12
30{
31 public static function getTableName(): string
32 {
33 return 'b_calendar_open_event_option';
34 }
35
36 public static function getObjectClass()
37 {
38 return OpenEventOption::class;
39 }
40
41 public static function getMap(): array
42 {
43 return [
44 (new IntegerField('ID'))
45 ->configurePrimary()
46 ->configureAutocomplete()
47 ,
48 (new IntegerField('EVENT_ID'))
49 ->configureRequired()
50 ,
51 (new IntegerField('CATEGORY_ID'))
52 ->configureRequired()
53 ,
54 new IntegerField('THREAD_ID'),
55 new TextField('OPTIONS'),
56 (new IntegerField('ATTENDEES_COUNT'))
57 ->configureRequired()
59 ,
60 new ReferenceField(
61 'EVENT',
62 EventTable::class,
63 Join::on('this.EVENT_ID', 'ref.ID')
64 ),
65 new ReferenceField(
66 'CATEGORY',
67 OpenEventCategoryTable::class,
68 Join::on('this.CATEGORY_ID', 'ref.ID')
69 ),
70 ];
71 }
72}
configureDefaultValue($value)
Определения scalarfield.php:248
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804