Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
membershiphandlerquerytable.php
1
<?php
2
namespace
Bitrix\Calendar\Internals
;
3
4
use
Bitrix\Main\Localization\Loc
;
5
use
Bitrix\Main\ORM\Data\DataManager
;
6
use
Bitrix\Main\ORM\Fields
;
7
23
class
MembershipHandlerQueryTable
extends
DataManager
24
{
30
public
static
function
getTableName
()
31
{
32
return
'b_calendar_membership_handler_query'
;
33
}
34
40
public
static
function
getMap
()
41
{
42
return
[
43
'ID'
=>
new
Fields\IntegerField(
44
'ID'
,
45
[
46
'primary'
=>
true
,
47
'autocomplete'
=>
true
,
48
'title'
=>
Loc::getMessage
(
'MEMBERSHIP_HANDLER_QUERY_ENTITY_ID_FIELD'
),
49
]
50
),
51
'ENTITY_TYPE'
=>
new
Fields\StringField(
52
'ENTITY_TYPE'
,
53
[
54
'required'
=>
true
,
55
'validation'
=> [__CLASS__,
'validateEntityType'
],
56
'title'
=>
Loc::getMessage
(
'MEMBERSHIP_HANDLER_QUERY_ENTITY_ENTITY_TYPE_FIELD'
),
57
]
58
),
59
'ENTITY_ID'
=>
new
Fields\IntegerField(
60
'ENTITY_ID'
,
61
[
62
'title'
=>
Loc::getMessage
(
'MEMBERSHIP_HANDLER_QUERY_ENTITY_ENTITY_ID_FIELD'
),
63
]
64
),
65
'CREATION_TIMESTAMP_UTC'
=>
new
Fields\IntegerField(
66
'CREATION_TIMESTAMP_UTC'
,
67
[
68
'title'
=>
Loc::getMessage
(
'MEMBERSHIP_HANDLER_QUERY_ENTITY_CREATION_TIMESTAMP_UTC_FIELD'
),
69
]
70
),
71
'LAST_UPDATED_EVENT_ID'
=>
new
Fields\IntegerField(
72
'LAST_UPDATED_EVENT_ID'
,
73
[
74
'title'
=>
Loc::getMessage
(
'MEMBERSHIP_HANDLER_QUERY_ENTITY_LAST_UPDATED_EVENT_ID_FIELD'
),
75
]
76
),
77
];
78
}
79
85
public
static
function
validateEntityType
(): array
86
{
87
return
[
88
new
Fields\Validators\LengthValidator
(
null
, 255),
89
];
90
}
91
}
Bitrix\Calendar\Internals\MembershipHandlerQueryTable
Definition
membershiphandlerquerytable.php:24
Bitrix\Calendar\Internals\MembershipHandlerQueryTable\getMap
static getMap()
Definition
membershiphandlerquerytable.php:40
Bitrix\Calendar\Internals\MembershipHandlerQueryTable\validateEntityType
static validateEntityType()
Definition
membershiphandlerquerytable.php:85
Bitrix\Calendar\Internals\MembershipHandlerQueryTable\getTableName
static getTableName()
Definition
membershiphandlerquerytable.php:30
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Main\ORM\Fields\Validators\LengthValidator
Definition
lengthvalidator.php:19
Bitrix\Calendar\Internals
Definition
access.php:3
Bitrix\Main\ORM\Fields
Definition
arrayfield.php:9
modules
calendar
lib
internals
membershiphandlerquerytable.php
Создано системой
1.10.0