Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sharingobjectruletable.php
1<?php
2
4
6use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
10
29{
30 use DeleteByFilterTrait;
31
37 public static function getTableName()
38 {
39 return 'b_calendar_sharing_object_rule';
40 }
41
47 public static function getMap()
48 {
49 return [
50 new IntegerField(
51 'ID',
52 [
53 'primary' => true,
54 'autocomplete' => true,
55 ]
56 ),
57 new IntegerField(
58 'OBJECT_ID',
59 [
60 'required' => true,
61 ]
62 ),
63 new StringField(
64 'OBJECT_TYPE',
65 [
66 'required' => true,
67 'validation' => function()
68 {
69 return[
70 new LengthValidator(null, 32),
71 ];
72 },
73 ]
74 ),
75 new IntegerField(
76 'SLOT_SIZE',
77 [
78 'required' => true,
79 ]
80 ),
81 new StringField(
82 'WEEKDAYS',
83 [
84 'validation' => function()
85 {
86 return[
87 new LengthValidator(null, 32),
88 ];
89 },
90 ]
91 ),
92 new IntegerField('TIME_FROM'),
93 new IntegerField('TIME_TO'),
94 ];
95 }
96}