Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
mailmessage.php
1
<?php
2
3
namespace
Bitrix\Mail
;
4
5
use
Bitrix\Main\Entity
;
6
use
Bitrix\Main\Localization
;
7
use
Bitrix\Main\ORM\Fields\DatetimeField
;
8
use
Bitrix\Main\ORM\Fields\TextField
;
9
10
Localization\Loc::loadMessages(__FILE__);
11
28
class
MailMessageTable
extends
Entity\DataManager
29
{
30
34
const
FIELD_SANITIZE_ON_VIEW
=
'SANITIZE_ON_VIEW'
;
35
36
public
static
function
getFilePath
()
37
{
38
return
__FILE__;
39
}
40
41
public
static
function
getTableName
()
42
{
43
return
'b_mail_message'
;
44
}
45
46
public
static
function
getMap
()
47
{
48
return
array(
49
'ID'
=> array(
50
'data_type'
=>
'integer'
,
51
'primary'
=>
true
,
52
'autocomplete'
=>
true
,
53
),
54
'MAILBOX_ID'
=> array(
55
'data_type'
=>
'integer'
,
56
'required'
=>
true
,
57
),
58
'DATE_INSERT'
=> array(
59
'data_type'
=>
'datetime'
,
60
'required'
=>
true
,
61
),
62
'FULL_TEXT'
=> array(
63
'data_type'
=>
'text'
,
64
),
65
'MESSAGE_SIZE'
=> array(
66
'data_type'
=>
'integer'
,
67
'required'
=>
true
,
68
),
69
'HEADER'
=> array(
70
'data_type'
=>
'text'
,
71
),
72
'FIELD_DATE'
=> array(
73
'data_type'
=>
'datetime'
,
74
),
75
'FIELD_FROM'
=> array(
76
'data_type'
=>
'string'
,
77
'fetch_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getFetchModificator'
),
78
),
79
'FIELD_REPLY_TO'
=> array(
80
'data_type'
=>
'string'
,
81
),
82
'FIELD_TO'
=> array(
83
'data_type'
=>
'string'
,
84
),
85
'FIELD_CC'
=> array(
86
'data_type'
=>
'string'
,
87
),
88
'FIELD_BCC'
=> array(
89
'data_type'
=>
'string'
,
90
),
91
'FIELD_PRIORITY'
=> array(
92
'data_type'
=>
'integer'
,
93
),
94
'SUBJECT'
=> array(
95
'data_type'
=>
'string'
,
96
'fetch_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getFetchModificator'
),
97
),
98
'BODY'
=> array(
99
'data_type'
=>
'text'
,
100
),
101
'BODY_HTML'
=> array(
102
'data_type'
=>
'text'
,
103
'fetch_data_modification'
=> array(
'\Bitrix\Main\Text\Emoji'
,
'getFetchModificator'
),
104
),
105
'ATTACHMENTS'
=> array(
106
'data_type'
=>
'integer'
,
107
),
108
'NEW_MESSAGE'
=> array(
109
'data_type'
=>
'boolean'
,
110
'values'
=> array(
'N'
,
'Y'
),
111
),
112
'SPAM'
=> array(
113
'data_type'
=>
'enum'
,
114
'values'
=> array(
'N'
,
'Y'
,
'?'
),
115
),
116
'SPAM_RATING'
=> array(
117
'data_type'
=>
'float'
,
118
),
119
'SPAM_WORDS'
=> array(
120
'data_type'
=>
'string'
,
121
),
122
'SPAM_LAST_RESULT'
=> array(
123
'data_type'
=>
'boolean'
,
124
'values'
=> array(
'N'
,
'Y'
),
125
),
126
'EXTERNAL_ID'
=> array(
127
'data_type'
=>
'string'
,
128
),
129
'MSG_ID'
=> array(
130
'data_type'
=>
'string'
,
131
),
132
'IN_REPLY_TO'
=> array(
133
'data_type'
=>
'string'
,
134
),
135
'LEFT_MARGIN'
=> array(
136
'data_type'
=>
'integer'
,
137
),
138
'RIGHT_MARGIN'
=> array(
139
'data_type'
=>
'integer'
,
140
),
141
'SEARCH_CONTENT'
=> array(
142
'data_type'
=>
'string'
,
143
),
144
'INDEX_VERSION'
=> array(
145
'data_type'
=>
'integer'
,
146
),
147
new
DatetimeField
(
'READ_CONFIRMED'
),
148
new
TextField
(
'OPTIONS'
,[
149
'serialized'
=>
true
,
150
]),
151
'MAILBOX'
=> array(
152
'data_type'
=>
'Bitrix\Mail\Mailbox'
,
153
'reference'
=> array(
'=this.MAILBOX_ID'
=>
'ref.ID'
),
154
),
155
self::FIELD_SANITIZE_ON_VIEW => [
156
'data_type'
=>
'boolean'
,
157
],
158
);
159
}
160
161
}
Bitrix\Mail\MailMessageTable
Definition
mailmessage.php:29
Bitrix\Mail\MailMessageTable\getMap
static getMap()
Definition
mailmessage.php:46
Bitrix\Mail\MailMessageTable\getFilePath
static getFilePath()
Definition
mailmessage.php:36
Bitrix\Mail\MailMessageTable\FIELD_SANITIZE_ON_VIEW
const FIELD_SANITIZE_ON_VIEW
Definition
mailmessage.php:34
Bitrix\Mail\MailMessageTable\getTableName
static getTableName()
Definition
mailmessage.php:41
Bitrix\Main\ORM\Entity
Definition
entity.php:26
Bitrix\Main\ORM\Fields\DatetimeField
Definition
datetimefield.php:22
Bitrix\Main\ORM\Fields\TextField
Definition
textfield.php:20
Bitrix\Mail
Definition
blacklist.php:3
Bitrix\Main\Localization
Definition
culture.php:8
modules
mail
lib
mailmessage.php
Создано системой
1.10.0