1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
sharinglinkruletable.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Internals;
4
5use Bitrix\Main\ORM\Data\DataManager;
6use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
7use Bitrix\Main\ORM\Fields\IntegerField;
8use Bitrix\Main\ORM\Fields\StringField;
9use Bitrix\Main\ORM\Fields\Validators\LengthValidator;
10
39
41{
42 use DeleteByFilterTrait;
43
49 public static function getTableName()
50 {
51 return 'b_calendar_sharing_link_rule';
52 }
53
59 public static function getMap()
60 {
61 return [
62 new IntegerField(
63 'ID',
64 [
65 'primary' => true,
66 'autocomplete' => true,
67 ]
68 ),
69 new IntegerField(
70 'LINK_ID',
71 [
72 'required' => true,
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}