1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
incomingmessage.php
См. документацию.
1
<?php
2
namespace
Bitrix\Messageservice\Internal\Entity
;
3
4
use
Bitrix\Main\ORM\Data\DataManager
;
5
use
Bitrix\Main\ORM\Fields\DatetimeField
;
6
use
Bitrix\Main\ORM\Fields\IntegerField
;
7
use
Bitrix\Main\ORM\Fields\StringField
;
8
use
Bitrix\Main\ORM\Fields\TextField
;
9
use
Bitrix\Main\ORM\Fields\Validators\LengthValidator
;
10
25
26
class
IncomingMessageTable
extends
DataManager
27
{
33
public
static
function
getTableName
()
34
{
35
return
'b_messageservice_incoming_message'
;
36
}
37
43
public
static
function
getMap
()
44
{
45
return
[
46
'ID'
=>
47
(
new
IntegerField
(
'ID'
, []))
48
->configurePrimary(
true
)
49
->configureAutocomplete(
true
),
50
'REQUEST_BODY'
=>
51
(
new
TextField
(
'REQUEST_BODY'
, [])),
52
'DATE_EXEC'
=>
53
(
new
DatetimeField
(
'DATE_EXEC'
, [])),
54
'SENDER_ID'
=>
55
(
new
StringField
(
'SENDER_ID'
, [
56
'validation'
=> [__CLASS__,
'validateSenderId'
]
57
]))
58
->configureRequired(
true
),
59
'EXTERNAL_ID'
=>
60
(
new
StringField
(
'EXTERNAL_ID'
, [
61
'validation'
=> [__CLASS__,
'validateExternalId'
]
62
])),
63
];
64
}
65
71
public
static
function
validateSenderId
():
array
72
{
73
return
[
74
new
LengthValidator
(
null
, 50),
75
];
76
}
77
83
public
static
function
validateExternalId
():
array
84
{
85
return
[
86
new
LengthValidator
(
null
, 128),
87
];
88
}
89
}
Bitrix\Main\ORM\Data\DataManager
Определения
datamanager.php:35
Bitrix\Main\ORM\Fields\DatetimeField
Определения
datetimefield.php:22
Bitrix\Main\ORM\Fields\IntegerField
Определения
integerfield.php:20
Bitrix\Main\ORM\Fields\StringField
Определения
stringfield.php:20
Bitrix\Main\ORM\Fields\TextField
Определения
textfield.php:20
Bitrix\Main\ORM\Fields\Validators\LengthValidator
Определения
lengthvalidator.php:19
Bitrix\Messageservice\Internal\Entity\IncomingMessageTable
Определения
incomingmessage.php:27
Bitrix\Messageservice\Internal\Entity\IncomingMessageTable\getMap
static getMap()
Определения
incomingmessage.php:43
Bitrix\Messageservice\Internal\Entity\IncomingMessageTable\validateExternalId
static validateExternalId()
Определения
incomingmessage.php:83
Bitrix\Messageservice\Internal\Entity\IncomingMessageTable\validateSenderId
static validateSenderId()
Определения
incomingmessage.php:71
Bitrix\Messageservice\Internal\Entity\IncomingMessageTable\getTableName
static getTableName()
Определения
incomingmessage.php:33
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Messageservice\Internal\Entity
Определения
incomingmessage.php:2
bitrix
modules
messageservice
lib
internal
entity
incomingmessage.php
Создано системой
1.14.0