Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
productedit.php
1
<?php
2
namespace
Bitrix\Catalog\Helpers\Admin
;
3
4
use
Bitrix\Main
,
5
Bitrix\Main\Localization\Loc
,
6
Bitrix\Catalog
,
7
Bitrix\Iblock
;
8
9
Loc::loadMessages
(__FILE__);
10
17
class
ProductEdit
18
{
26
public
static
function
getDefaultValues
($subscribe =
false
)
27
{
28
$vatInclude = ((string)Main\
Config
\Option::get(
'catalog'
,
'default_product_vat_included'
) ==
'Y'
?
'Y'
:
'N'
);
29
$subscribe = ($subscribe ===
true
);
30
if
($subscribe)
31
{
32
return
array(
33
'QUANTITY'
=>
''
,
34
'QUANTITY_RESERVED'
=>
''
,
35
'VAT_ID'
=> 0,
36
'VAT_INCLUDED'
=> $vatInclude,
37
'QUANTITY_TRACE_ORIG'
=> Catalog\
ProductTable::STATUS_DEFAULT
,
38
'CAN_BUY_ZERO_ORIG'
=> Catalog\
ProductTable::STATUS_DEFAULT
,
39
'SUBSCRIBE_ORIG'
=> Catalog\
ProductTable::STATUS_DEFAULT
,
40
'PURCHASING_PRICE'
=>
''
,
41
'PURCHASING_CURRENCY'
=>
''
,
42
'BARCODE_MULTI'
=>
''
,
43
'PRICE_TYPE'
=>
''
,
44
'RECUR_SCHEME_TYPE'
=>
''
,
45
'RECUR_SCHEME_LENGTH'
=>
''
,
46
'TRIAL_PRICE_ID'
=>
''
,
47
'WITHOUT_ORDER'
=>
''
,
48
);
49
}
50
return
array(
51
'QUANTITY'
=>
''
,
52
'QUANTITY_RESERVED'
=>
''
,
53
'VAT_ID'
=> 0,
54
'VAT_INCLUDED'
=> $vatInclude,
55
'QUANTITY_TRACE_ORIG'
=> Catalog\
ProductTable::STATUS_DEFAULT
,
56
'CAN_BUY_ZERO_ORIG'
=> Catalog\
ProductTable::STATUS_DEFAULT
,
57
'SUBSCRIBE_ORIG'
=> Catalog\
ProductTable::STATUS_DEFAULT
,
58
'PURCHASING_PRICE'
=>
''
,
59
'PURCHASING_CURRENCY'
=>
''
,
60
'WEIGHT'
=>
''
,
61
'WIDTH'
=>
''
,
62
'LENGTH'
=>
''
,
63
'HEIGHT'
=>
''
,
64
'MEASURE'
=>
''
,
65
'BARCODE_MULTI'
=>
''
66
);
67
}
68
}
Bitrix\Catalog\Helpers\Admin\ProductEdit
Definition
productedit.php:18
Bitrix\Catalog\Helpers\Admin\ProductEdit\getDefaultValues
static getDefaultValues($subscribe=false)
Definition
productedit.php:26
Bitrix\Catalog\ProductTable\STATUS_DEFAULT
const STATUS_DEFAULT
Definition
product.php:68
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadMessages
static loadMessages($file)
Definition
loc.php:64
Bitrix\Catalog\Helpers\Admin
Definition
catalogedit.php:2
Bitrix\Catalog
Bitrix\Iblock
Bitrix\Main\Config
Definition
configuration.php:2
Bitrix\Main
modules
catalog
lib
helpers
admin
productedit.php
Создано системой
1.10.0