1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
company.php
См. документацию.
1
<?php
2
namespace
Bitrix\Sale\Exchange\Integration\Service\User\Entity;
3
4
use Bitrix\Sale\Exchange\Integration\Service\User\EntityType;
5
6
class
Company
extends
Base
7
{
8
//COMPANY
9
//COMPANY_ADR
10
//INN
11
//KPP
12
//CONTACT_PERSON
13
//EMAIL
14
//PHONE
15
//FAX
16
//ZIP
17
//CITY
18
//LOCATION
19
//ADDRESS
20
21
public
function
getCompany
()
22
{
23
return
$this->fields->get(
'COMPANY'
);
24
}
25
26
public
function
setCompany
($value)
27
{
28
$this->fields->set(
'COMPANY'
, $value);
29
return
$this;
30
}
31
32
public
function
getCompanyAdr
()
33
{
34
return
$this->fields->get(
'COMPANY_ADR'
);
35
}
36
37
public
function
setCompanyAdr
($value)
38
{
39
$this->fields->set(
'COMPANY_ADR'
, $value);
40
return
$this;
41
}
42
43
public
function
getInn
()
44
{
45
return
$this->fields->get(
'INN'
);
46
}
47
48
public
function
setInn
($value)
49
{
50
$this->fields->set(
'INN'
, $value);
51
return
$this;
52
}
53
54
public
function
getKpp
()
55
{
56
return
$this->fields->get(
'KPP'
);
57
}
58
59
public
function
setKpp
($value)
60
{
61
$this->fields->set(
'KPP'
, $value);
62
return
$this;
63
}
64
65
public
function
getContactPerson
()
66
{
67
return
$this->fields->get(
'CONTACT_PERSON'
);
68
}
69
70
public
function
setContactPerson
($value)
71
{
72
$this->fields->set(
'CONTACT_PERSON'
, $value);
73
return
$this;
74
}
75
76
public
function
getEmail
()
77
{
78
return
$this->fields->get(
'EMAIL'
);
79
}
80
81
public
function
setEmail
($value)
82
{
83
$this->fields->set(
'EMAIL'
, $value);
84
return
$this;
85
}
86
87
public
function
getPhone
()
88
{
89
return
$this->fields->get(
'PHONE'
);
90
}
91
92
public
function
setPhone
($value)
93
{
94
$this->fields->set(
'PHONE'
, $value);
95
return
$this;
96
}
97
98
public
function
getFax
()
99
{
100
return
$this->fields->get(
'FAX'
);
101
}
102
103
public
function
setFax
($value)
104
{
105
$this->fields->set(
'FAX'
, $value);
106
return
$this;
107
}
108
109
public
function
getZip
()
110
{
111
return
$this->fields->get(
'ZIP'
);
112
}
113
114
public
function
setZip
($value)
115
{
116
$this->fields->set(
'ZIP'
, $value);
117
return
$this;
118
}
119
120
public
function
getCity
()
121
{
122
return
$this->fields->get(
'CITY'
);
123
}
124
125
public
function
setCity
($value)
126
{
127
$this->fields->set(
'CITY'
, $value);
128
return
$this;
129
}
130
131
public
function
getLocation
()
132
{
133
return
$this->fields->get(
'LOCATION'
);
134
}
135
136
public
function
setLocation
($value)
137
{
138
$this->fields->set(
'LOCATION'
, $value);
139
return
$this;
140
}
141
142
public
function
getAddress
()
143
{
144
return
$this->fields->get(
'ADDRESS'
);
145
}
146
147
public
function
setAddress
($value)
148
{
149
$this->fields->set(
'ADDRESS'
, $value);
150
return
$this;
151
}
152
153
public
function
getType
()
154
{
155
return
EntityType::TYPE_E
;
156
}
157
158
static
protected
function
resolveFields
(
array
$list)
159
{
160
$result
= [];
161
foreach
($list as $item)
162
{
163
$result
[
'ID'
] = $item[
'SALE_INTERNALS_ORDER_USER_ID'
];
164
165
$result
[$item[
'SALE_INTERNALS_ORDER_PROPERTY_CODE'
]] = $item[
'SALE_INTERNALS_ORDER_PROPERTY_VALUE'
];
166
}
167
return
$result
;
168
}
169
170
static
public
function
createFromArray
(
array
$fields
)
171
{
172
return
new
static
([
173
'ID'
=>
$fields
[
'ID'
],
174
'TITLE'
=>
$fields
[
'COMPANY'
],
175
'COMPANY_ADR'
=>
$fields
[
'COMPANY_ADR'
],
176
'EMAIL'
=>
$fields
[
'EMAIL'
],
177
'PHONE'
=>
$fields
[
'PHONE'
],
178
'ZIP'
=>
$fields
[
'ZIP'
],
179
'CITY'
=>
$fields
[
'CITY'
],
180
'ADDRESS'
=>
$fields
[
'ADDRESS'
],
181
]);
182
}
183
}
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Base
Определения
base.php:11
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Base\$fields
$fields
Определения
base.php:12
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company
Определения
company.php:7
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getEmail
getEmail()
Определения
company.php:76
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setInn
setInn($value)
Определения
company.php:48
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setFax
setFax($value)
Определения
company.php:103
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getLocation
getLocation()
Определения
company.php:131
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\createFromArray
static createFromArray(array $fields)
Определения
company.php:170
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setEmail
setEmail($value)
Определения
company.php:81
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setContactPerson
setContactPerson($value)
Определения
company.php:70
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setLocation
setLocation($value)
Определения
company.php:136
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setKpp
setKpp($value)
Определения
company.php:59
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\resolveFields
static resolveFields(array $list)
Определения
company.php:158
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getAddress
getAddress()
Определения
company.php:142
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getPhone
getPhone()
Определения
company.php:87
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getContactPerson
getContactPerson()
Определения
company.php:65
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getType
getType()
Определения
company.php:153
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setCity
setCity($value)
Определения
company.php:125
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getKpp
getKpp()
Определения
company.php:54
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getCompany
getCompany()
Определения
company.php:21
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setZip
setZip($value)
Определения
company.php:114
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getZip
getZip()
Определения
company.php:109
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setPhone
setPhone($value)
Определения
company.php:92
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setAddress
setAddress($value)
Определения
company.php:147
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setCompany
setCompany($value)
Определения
company.php:26
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getInn
getInn()
Определения
company.php:43
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getCity
getCity()
Определения
company.php:120
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getCompanyAdr
getCompanyAdr()
Определения
company.php:32
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\getFax
getFax()
Определения
company.php:98
Bitrix\Sale\Exchange\Integration\Service\User\Entity\Company\setCompanyAdr
setCompanyAdr($value)
Определения
company.php:37
Bitrix\Sale\Exchange\Integration\Service\User\EntityType\TYPE_E
const TYPE_E
Определения
entitytype.php:9
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
bitrix
modules
sale
lib
exchange
integration
service
user
entity
company.php
Создано системой
1.14.0