1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
hrsyncqueue.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
44
46{
52 public static function getTableName()
53 {
54 return 'b_im_hr_sync_queue';
55 }
56
62 public static function getMap()
63 {
64 return [
65 'ID' => new IntegerField(
66 'ID',
67 [
68 'primary' => true,
69 'autocomplete' => true,
70 ]
71 ),
72 'ENTITY_TYPE' => new StringField(
73 'ENTITY_TYPE',
74 [
75 'required' => true,
76 'validation' => function()
77 {
78 return[
79 new LengthValidator(null, 25),
80 ];
81 },
82 ]
83 ),
84 'ENTITY_ID' => new IntegerField(
85 'ENTITY_ID',
86 [
87 'required' => true,
88 ]
89 ),
90 'DIRECTION' => new StringField(
91 'DIRECTION',
92 [
93 'required' => true,
94 'validation' => function()
95 {
96 return[
97 new LengthValidator(null, 100),
98 ];
99 },
100 ]
101 ),
102 'NODE_ID' => new IntegerField(
103 'NODE_ID',
104 [
105 'required' => true,
106 ]
107 ),
108 'WITH_CHILD_NODES' => new BooleanField(
109 'WITH_CHILD_NODES',
110 [
111 'values' => ['N', 'Y'],
112 'default' => 'N',
113 ]
114 ),
115 'POINTER' => new IntegerField(
116 'POINTER',
117 [
118 'default' => 0,
119 ]
120 ),
121 'STATUS' => new StringField(
122 'STATUS',
123 [
124 'validation' => function()
125 {
126 return[
127 new LengthValidator(null, 100),
128 ];
129 },
130 ]
131 ),
132 'IS_LOCKED' => new BooleanField(
133 'IS_LOCKED',
134 [
135 'values' => ['N', 'Y'],
136 'default' => 'N',
137 ]
138 ),
139 'DATE_CREATE' => new DatetimeField(
140 'DATE_CREATE',
141 [
142 ]
143 ),
144 'DATE_UPDATE' => new DatetimeField(
145 'DATE_UPDATE',
146 [
147 ]
148 ),
149 ];
150 }
151}
static getMap()
Определения hrsyncqueue.php:62
static getTableName()
Определения hrsyncqueue.php:52