1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
calendarlogtable.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Internals;
4
5use Bitrix\Main;
6use Bitrix\Main\Localization\Loc;
7use Bitrix\Main\ORM\Fields\DatetimeField;
8use Bitrix\Main\ORM\Fields\IntegerField;
9use Bitrix\Main\ORM\Fields\StringField;
10use Bitrix\Main\ORM\Fields\TextField;
11
28class CalendarLogTable extends Main\Entity\DataManager
29{
33 public static function getFilePath()
34 {
35 return __FILE__;
36 }
37
43 public static function getTableName()
44 {
45 return 'b_calendar_log';
46 }
47
52 public static function getMap()
53 {
54 return [
55 (new IntegerField('ID'))
56 ->configureTitle(Loc::getMessage('LOG_ENTITY_ID_FIELD'))
57 ->configurePrimary(true)
58 ->configureAutocomplete(true)
59 ,
60 (new DatetimeField('TIMESTAMP_X'))
61 ->configureTitle(Loc::getMessage('LOG_ENTITY_TIMESTAMP_X_FIELD'))
62 ,
63 (new TextField('MESSAGE'))
64 ->configureTitle(Loc::getMessage('LOG_ENTITY_MESSAGE_FIELD'))
65 ,
66 (new StringField('TYPE'))
67 ->configureTitle(Loc::getMessage('LOG_ENTITY_TYPE_FIELD'))
68 ,
69 (new StringField('UUID'))
70 ->configureTitle(Loc::getMessage('LOG_ENTITY_UUID_FIELD'))
71 ,
72 (new IntegerField('USER_ID'))
73 ->configureTitle(Loc::getMessage('LOG_ENTITY_USER_ID_FIELD'))
74 ,
75 ];
76 }
77}