1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
company.php
См. документацию.
1
<?php
2
namespace
Bitrix\Sender\Integration\Crm\Connectors\Personalize
;
3
4
use
Bitrix
;
5
use CCrmStatus;
6
7
class
Company
extends
BasePersonalize
8
{
9
10
public
static
function
getEntityFields
($entityType)
11
{
12
\Bitrix\Main\Localization\Loc::loadMessages
(
13
$_SERVER
[
'DOCUMENT_ROOT'
].
BX_ROOT
.
'/components/bitrix/crm.'
.strtolower($entityType).
'.edit/component.php'
14
);
15
16
$arResult
=
array
(
17
'ID'
=>
array
(
18
'Name'
=>
GetMessage
(
'CRM_FIELD_ID'
),
19
'Type'
=>
'int'
,
20
'Filterable'
=>
true
,
21
'Editable'
=>
false
,
22
'Required'
=>
false
,
23
// 'personalizeCode' => 'ID'
24
),
25
'TITLE'
=>
array
(
26
'Name'
=>
GetMessage
(
'CRM_FIELD_TITLE_COMPANY'
),
27
'Type'
=>
'string'
,
28
'Filterable'
=>
true
,
29
'Editable'
=>
true
,
30
'Required'
=>
true
,
31
// 'personalizeCode' => 'NAME'
32
),
33
'COMPANY_TYPE'
=>
array
(
34
'Name'
=>
GetMessage
(
'CRM_FIELD_COMPANY_TYPE'
),
35
'Type'
=>
'select'
,
36
'Options'
=> CCrmStatus::GetStatusListEx(
'COMPANY_TYPE'
),
37
'Filterable'
=>
true
,
38
'Editable'
=>
true
,
39
'Required'
=>
false
,
40
),
41
'INDUSTRY'
=>
array
(
42
'Name'
=>
GetMessage
(
'CRM_FIELD_INDUSTRY'
),
43
'Type'
=>
'select'
,
44
'Options'
=> CCrmStatus::GetStatusListEx(
'INDUSTRY'
),
45
'Filterable'
=>
true
,
46
'Editable'
=>
true
,
47
'Required'
=>
false
,
48
),
49
'EMPLOYEES'
=>
array
(
50
'Name'
=>
GetMessage
(
'CRM_FIELD_EMPLOYEES'
),
51
'Type'
=>
'select'
,
52
'Options'
=> CCrmStatus::GetStatusListEx(
'EMPLOYEES'
),
53
'Filterable'
=>
true
,
54
'Editable'
=>
true
,
55
'Required'
=>
false
,
56
),
57
'REVENUE'
=>
array
(
58
'Name'
=>
GetMessage
(
'CRM_FIELD_REVENUE'
),
59
'Type'
=>
'string'
,
60
'Filterable'
=>
true
,
61
'Editable'
=>
true
,
62
'Required'
=>
false
,
63
),
64
);
65
$arResult
+=
array
(
66
'COMMENTS'
=>
array
(
67
'Name'
=>
GetMessage
(
'CRM_FIELD_COMMENTS'
),
68
'Type'
=>
'text'
,
69
'Filterable'
=>
false
,
70
'Editable'
=>
true
,
71
'Required'
=>
false
,
72
),
73
'EMAIL'
=>
array
(
74
'Name'
=>
GetMessage
(
'CRM_FIELD_EMAIL'
),
75
'Type'
=>
'email'
,
76
'Filterable'
=>
true
,
77
'Editable'
=>
true
,
78
'Required'
=>
false
,
79
// 'personalizeCode' => 'EMAIL'
80
),
81
'PHONE'
=>
array
(
82
'Name'
=>
GetMessage
(
'CRM_FIELD_PHONE'
),
83
'Type'
=>
'phone'
,
84
'Filterable'
=>
true
,
85
'Editable'
=>
true
,
86
'Required'
=>
false
,
87
// 'personalizeCode' => 'PHONE'
88
),
89
'WEB'
=>
array
(
90
'Name'
=>
GetMessage
(
'CRM_FIELD_WEB'
),
91
'Type'
=>
'web'
,
92
'Filterable'
=>
true
,
93
'Editable'
=>
true
,
94
'Required'
=>
false
,
95
),
96
'IM'
=>
array
(
97
'Name'
=>
GetMessage
(
'CRM_FIELD_MESSENGER'
),
98
'Type'
=>
'im'
,
99
'Filterable'
=>
true
,
100
'Editable'
=>
true
,
101
'Required'
=>
false
,
102
),
103
'FULL_ADDRESS'
=>
array
(
104
'Name'
=>
GetMessage
(
'CRM_FIELD_ADDRESS'
),
105
'Type'
=>
'text'
,
106
'Filterable'
=>
true
,
107
'Editable'
=>
true
,
108
'Required'
=>
false
,
109
),
110
'ADDRESS_LEGAL'
=>
array
(
111
'Name'
=>
GetMessage
(
'CRM_FIELD_ADDRESS_LEGAL'
),
112
'Type'
=>
'text'
,
113
'Filterable'
=>
true
,
114
'Editable'
=>
true
,
115
'Required'
=>
false
,
116
),
117
'BANKING_DETAILS'
=>
array
(
118
'Name'
=>
GetMessage
(
'CRM_FIELD_BANKING_DETAILS'
),
119
'Type'
=>
'text'
,
120
'Filterable'
=>
true
,
121
'Editable'
=>
true
,
122
'Required'
=>
false
,
123
),
124
"OPENED"
=>
array
(
125
"Name"
=>
GetMessage
(
"CRM_FIELD_OPENED"
),
126
"Type"
=>
"bool"
,
127
"Filterable"
=>
true
,
128
"Editable"
=>
true
,
129
"Required"
=>
false
,
130
),
131
// "ORIGINATOR_ID" => array(
132
// "Name" => GetMessage("CRM_FIELD_ORIGINATOR_ID"),
133
// "Type" => "string",
134
// "Filterable" => true,
135
// "Editable" => true,
136
// "Required" => false,
137
// ),
138
"CONTACT_ID"
=>
array
(
139
"Name"
=>
GetMessage
(
"CRM_FIELD_CONTACT_ID"
),
140
"Type"
=>
"UF:crm"
,
141
"Options"
=>
array
(
'CONTACT'
=>
'Y'
),
142
"Filterable"
=>
true
,
143
"Editable"
=>
true
,
144
"Required"
=>
false
,
145
"Multiple"
=>
true
,
146
),
147
"DATE_CREATE"
=>
array
(
148
"Name"
=>
GetMessage
(
"CRM_COMPANY_EDIT_FIELD_DATE_CREATE"
),
149
"Type"
=>
"datetime"
,
150
"Filterable"
=>
true
,
151
"Editable"
=>
false
,
152
"Required"
=>
false
,
153
),
154
"DATE_MODIFY"
=>
array
(
155
"Name"
=>
GetMessage
(
"CRM_COMPANY_EDIT_FIELD_DATE_MODIFY"
),
156
"Type"
=>
"datetime"
,
157
"Filterable"
=>
true
,
158
"Editable"
=>
false
,
159
"Required"
=>
false
,
160
),
161
);
162
163
$arResult
+= parent::getEntityFields($entityType);
164
165
return
$arResult
;
166
}
167
}
BX_ROOT
const BX_ROOT
Определения
bx_root.php:3
$arResult
$arResult
Определения
generate_coupon.php:16
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Определения
loc.php:65
Bitrix\Sender\Integration\Crm\Connectors\Personalize\BasePersonalize
Определения
basepersonalize.php:9
Bitrix\Sender\Integration\Crm\Connectors\Personalize\Company
Определения
company.php:8
Bitrix\Sender\Integration\Crm\Connectors\Personalize\Company\getEntityFields
static getEntityFields($entityType)
Определения
company.php:10
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
GetMessage
GetMessage($name, $aReplace=null)
Определения
tools.php:3397
Bitrix\Sender\Integration\Crm\Connectors\Personalize
Определения
basepersonalize.php:3
Bitrix
bitrix
modules
sender
lib
integration
crm
connectors
personalize
company.php
Создано системой
1.14.0