Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sharingobjectruletable.php
1
<?php
2
3
namespace
Bitrix\Calendar\Internals
;
4
5
use
Bitrix\Main\ORM\Data\DataManager
;
6
use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
7
use
Bitrix\Main\ORM\Fields\IntegerField
;
8
use
Bitrix\Main\ORM\Fields\StringField
;
9
use
Bitrix\Main\ORM\Fields\Validators\LengthValidator
;
10
28
class
SharingObjectRuleTable
extends
DataManager
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
}
Bitrix\Calendar\Internals\SharingObjectRuleTable
Definition
sharingobjectruletable.php:29
Bitrix\Calendar\Internals\SharingObjectRuleTable\getMap
static getMap()
Definition
sharingobjectruletable.php:47
Bitrix\Calendar\Internals\SharingObjectRuleTable\getTableName
static getTableName()
Definition
sharingobjectruletable.php:37
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\IntegerField
Definition
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Definition
stringfield.php:20
Bitrix\Main\ORM\Fields\Validators\LengthValidator
Definition
lengthvalidator.php:19
Bitrix\Calendar\Internals
Definition
access.php:3
modules
calendar
lib
internals
sharingobjectruletable.php
Создано системой
1.10.0