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