Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sharinglinktable.php
1
<?php
2
namespace
Bitrix\Calendar\Sharing\Link
;
3
4
use Bitrix\Main\Entity\TextField;
5
use
Bitrix\Main\ORM\Data\DataManager
;
6
use
Bitrix\Main\ORM\Fields\BooleanField
;
7
use
Bitrix\Main\ORM\Fields\DatetimeField
;
8
use
Bitrix\Main\ORM\Fields\IntegerField
;
9
use
Bitrix\Main\ORM\Fields\StringField
;
10
use
Bitrix\Main\ORM\Fields\Validators\LengthValidator
;
11
use
Bitrix\Main\Type\DateTime
;
12
43
class
SharingLinkTable
extends
DataManager
44
{
50
public
static
function
getTableName
()
51
{
52
return
'b_calendar_sharing_link'
;
53
}
54
60
public
static
function
getMap
()
61
{
62
return
[
63
new
IntegerField
(
64
'ID'
,
65
[
66
'primary'
=>
true
,
67
'autocomplete'
=>
true
,
68
]
69
),
70
new
IntegerField
(
71
'OBJECT_ID'
,
72
[
73
'required'
=>
true
,
74
]
75
),
76
new
StringField
(
77
'OBJECT_TYPE'
,
78
[
79
'required'
=>
true
,
80
'validation'
=> [__CLASS__,
'validateObjectType'
],
81
]
82
),
83
new
StringField
(
84
'HASH'
,
85
[
86
'required'
=>
true
,
87
'validation'
=> [__CLASS__,
'validateHash'
],
88
]
89
),
90
new
TextField(
'OPTIONS'
),
91
new
BooleanField
(
92
'ACTIVE'
,
93
[
94
'values'
=> array(
'N'
,
'Y'
),
95
'default'
=>
'Y'
,
96
]
97
),
98
new
DatetimeField
(
99
'DATE_CREATE'
,
100
[
101
'required'
=>
true
,
102
]
103
),
104
];
105
}
106
112
public
static
function
validateObjectType
(): array
113
{
114
return
[
115
new
LengthValidator
(
null
, 32),
116
];
117
}
118
124
public
static
function
validateHash
(): array
125
{
126
return
[
127
new
LengthValidator
(
null
, 64),
128
];
129
}
130
}
Bitrix\Calendar\Internals\SharingLinkTable
Definition
sharinglinktable.php:55
Bitrix\Calendar\Sharing\Link\SharingLinkTable\getMap
static getMap()
Definition
sharinglinktable.php:60
Bitrix\Calendar\Sharing\Link\SharingLinkTable\validateObjectType
static validateObjectType()
Definition
sharinglinktable.php:112
Bitrix\Calendar\Sharing\Link\SharingLinkTable\validateHash
static validateHash()
Definition
sharinglinktable.php:124
Bitrix\Calendar\Sharing\Link\SharingLinkTable\getTableName
static getTableName()
Definition
sharinglinktable.php:50
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\BooleanField
Definition
booleanfield.php:20
Bitrix\Main\ORM\Fields\DatetimeField
Definition
datetimefield.php:22
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\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Calendar\Sharing\Link
Definition
crmdeallink.php:3
modules
calendar
lib
sharing
link
sharinglinktable.php
Создано системой
1.10.0