1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
OpenEventCategoryTable.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\OpenEvents\Internals;
4
5use Bitrix\Calendar\OpenEvents\Internals\Collection\OpenEventCategoryCollection;
6use Bitrix\Calendar\OpenEvents\Internals\Entity\OpenEventCategory;
7use Bitrix\Main\Entity\BooleanField;
8use Bitrix\Main\Entity\TextField;
9use Bitrix\Main\ORM\Data\DataManager;
10use Bitrix\Main\ORM\Fields\DatetimeField;
11use Bitrix\Main\ORM\Fields\IntegerField;
12use Bitrix\Main\ORM\Fields\StringField;
13use Bitrix\Main\Type\DateTime;
14
32{
33 public static function getTableName(): string
34 {
35 return 'b_calendar_open_event_category';
36 }
37
38 public static function getObjectClass(): string
39 {
40 return OpenEventCategory::class;
41 }
42
43 public static function getCollectionClass(): string
44 {
45 return OpenEventCategoryCollection::class;
46 }
47
48 public static function getMap(): array
49 {
50 return [
51 (new IntegerField('ID'))
52 ->configurePrimary()
53 ->configureAutocomplete()
54 ,
55 (new StringField('NAME'))
56 ->configureRequired()
57 ,
58 (new IntegerField('CREATOR_ID'))
59 ->configureRequired()
60 ,
61 (new BooleanField('CLOSED'))
62 ->configureDefaultValue('N')
63 ->configureStorageValues('N', 'Y')
64 ,
65 new TextField('DESCRIPTION'),
66 new TextField('ACCESS_CODES'),
67 (new BooleanField('DELETED'))
68 ->configureDefaultValue('N')
69 ->configureStorageValues('N', 'Y')
70 ,
71 (new IntegerField('CHANNEL_ID'))
72 ->configureRequired()
73 ,
74 (new IntegerField('EVENTS_COUNT'))
75 ->configureRequired()
77 ,
78 (new DatetimeField('DATE_CREATE'))
79 ->configureRequired()
80 ->configureDefaultValue(static fn() => new DateTime())
81 ,
82 (new DatetimeField('LAST_ACTIVITY'))
83 ->configureRequired()
84 ->configureDefaultValue(static fn() => new DateTime())
85 ,
86 ];
87 }
88}
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