Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sharinglinkruletable.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
27
class
SharingLinkRuleTable
extends
DataManager
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
}
Bitrix\Calendar\Internals\SharingLinkRuleTable
Definition
sharinglinkruletable.php:28
Bitrix\Calendar\Internals\SharingLinkRuleTable\getMap
static getMap()
Definition
sharinglinkruletable.php:46
Bitrix\Calendar\Internals\SharingLinkRuleTable\getTableName
static getTableName()
Definition
sharinglinkruletable.php:36
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
sharinglinkruletable.php
Создано системой
1.10.0