1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
MessengerMessageTable.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Main\Messenger\Internals\Storage\Db\Model;
6
7use Bitrix\Main\ORM\Data\DataManager;
8use Bitrix\Main\ORM\Event;
9use Bitrix\Main\ORM\EventResult;
10use Bitrix\Main\ORM\Fields\IntegerField;
11use Bitrix\Main\ORM\Fields\TextField;
12use Bitrix\Main\ORM\Fields\DatetimeField;
13use Bitrix\Main\ORM\Fields\StringField;
14use Bitrix\Main\Type\DateTime;
15
33{
34 public static function onBeforeUpdate(Event $event): EventResult
35 {
36 $result = new EventResult();
37
38 $result->modifyFields(['UPDATED_AT' => new DateTime()]);
39
40 return $result;
41 }
42
43 public static function getTableName(): string
44 {
45 return 'b_main_messenger_message';
46 }
47
48 public static function getMap(): array
49 {
50 return [
51 (new IntegerField('ID'))
52 ->configurePrimary()
53 ->configureAutocomplete(),
54
55 (new StringField('QUEUE_ID'))
56 ->configureRequired()
57 ->configureSize(255),
58
59 (new StringField('ITEM_ID'))
60 ->configureNullable()
61 ->configureSize(64),
62
63 (new StringField('CLASS'))
64 ->configureRequired(),
65
66 (new TextField('PAYLOAD'))
67 ->configureRequired(),
68
69 (new DatetimeField('CREATED_AT'))
70 ->configureRequired()
71 ->configureDefaultValueNow(),
72
73 (new DatetimeField('UPDATED_AT'))
74 ->configureRequired()
75 ->configureDefaultValueNow(),
76
77 (new IntegerField('TTL'))
78 ->configureRequired(),
79
80 (new DatetimeField('AVAILABLE_AT'))
81 ->configureRequired()
82 ->configureDefaultValue(fn() => new DateTime()),
83
84 (new StringField('STATUS'))
85 ->configureRequired()
86 ->configureDefaultValue(MessageStatus::New->value)
87 ->configureSize(10),
88 ];
89 }
90}
Определения event.php:5
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
$event
Определения prolog_after.php:141