1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
recentinitqueue.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\StringField;
9use Bitrix\Main\ORM\Fields\Validators\LengthValidator;
10
43
45{
51 public static function getTableName()
52 {
53 return 'b_im_recent_init_queue';
54 }
55
61 public static function getMap()
62 {
63 return [
64 'ID' => new IntegerField(
65 'ID',
66 [
67 'primary' => true,
68 'autocomplete' => true,
69 ]
70 ),
71 'USER_ID' => new IntegerField(
72 'USER_ID',
73 [
74 'required' => true,
75 ]
76 ),
77 'STAGE' => new StringField(
78 'STAGE',
79 [
80 'required' => true,
81 'validation' => function()
82 {
83 return [
84 new LengthValidator(null, 100),
85 ];
86 },
87 ]
88 ),
89 'SOURCE' => new StringField(
90 'SOURCE',
91 [
92 'required' => true,
93 'validation' => function()
94 {
95 return [
96 new LengthValidator(null, 100),
97 ];
98 },
99 ]
100 ),
101 'SOURCE_ID' => new IntegerField(
102 'SOURCE_ID',
103 [
104 ]
105 ),
106 'POINTER' => new StringField(
107 'POINTER',
108 [
109 'validation' => function()
110 {
111 return[
112 new LengthValidator(null, 255),
113 ];
114 },
115 ]
116 ),
117 'STATUS' => new StringField(
118 'STATUS',
119 [
120 'validation' => function()
121 {
122 return[
123 new LengthValidator(null, 100),
124 ];
125 },
126 ]
127 ),
128 'IS_LOCKED' => new BooleanField(
129 'IS_LOCKED',
130 [
131 'values' => ['N', 'Y'],
132 'default' => 'N',
133 ]
134 ),
135 'DATE_CREATE' => new DatetimeField(
136 'DATE_CREATE',
137 [
138 ]
139 ),
140 'DATE_UPDATE' => new DatetimeField(
141 'DATE_UPDATE',
142 [
143 ]
144 ),
145 ];
146 }
147}