1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
linkreminder.php
См. документацию.
1<?php
2namespace Bitrix\Im\Model;
3
4use Bitrix\Main\ORM\Data\DataManager;
5use Bitrix\Main\ORM\Fields\BooleanField;
6use Bitrix\Main\ORM\Fields\DatetimeField;
7use Bitrix\Main\ORM\Fields\IntegerField;
8use Bitrix\Main\ORM\Fields\Relations\Reference;
9use Bitrix\Main\ORM\Query\Join;
10use Bitrix\Main\Type\DateTime;
11
41
43{
49 public static function getTableName()
50 {
51 return 'b_im_link_reminder';
52 }
53
59 public static function getMap()
60 {
61 return [
62 'ID' => new IntegerField(
63 'ID',
64 [
65 'primary' => true,
66 'autocomplete' => true,
67 ]
68 ),
69 'MESSAGE_ID' => new IntegerField(
70 'MESSAGE_ID',
71 [
72 'required' => true,
73 ]
74 ),
75 'CHAT_ID' => new IntegerField(
76 'CHAT_ID',
77 [
78 'required' => true,
79 ]
80 ),
81 'DATE_CREATE' => new DatetimeField(
82 'DATE_CREATE',
83 [
84 'required' => true,
85 'default_value' => static function() {
86 return new DateTime();
87 }
88 ]
89 ),
90 'AUTHOR_ID' => new IntegerField(
91 'AUTHOR_ID',
92 [
93 'required' => true,
94 ]
95 ),
96 'DATE_REMIND' => new DatetimeField(
97 'DATE_REMIND',
98 [
99 'required' => true,
100 ]
101 ),
102 'IS_REMINDED' => new BooleanField(
103 'IS_REMINDED',
104 [
105 'required' => true,
106 'values' => array('N', 'Y'),
107 'default' => 'N',
108 'default_value' => false,
109 ]
110 ),
111 'MESSAGE' => (new Reference(
112 'MESSAGE',
113 MessageTable::class,
114 Join::on('this.MESSAGE_ID', 'ref.ID')
115 ))->configureJoinType(Join::TYPE_INNER),
116 ];
117 }
118}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804