1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
b24enabler.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Catalog\Store\EnableWizard
;
4
5
use
Bitrix\Catalog\Product\Store\CostPriceCalculator
;
6
use
Bitrix\Main\Result
;
7
8
class
B24Enabler
extends
Enabler
9
{
10
public
static
function
enable
(
array
$options
= []):
Result
11
{
12
$result
= parent::enable(
$options
);
13
if
(!
$result
->isSuccess())
14
{
15
return
$result
;
16
}
17
18
CostPriceCalculator::setMethod(
19
$options
[
'costPriceCalculationMethod'
] ?? CostPriceCalculator::METHOD_AVERAGE
20
);
21
22
return
$result
;
23
}
24
25
public
static
function
disable
():
Result
26
{
27
$result
= parent::disable();
28
if
(!
$result
->isSuccess())
29
{
30
return
$result
;
31
}
32
33
return
$result
;
34
}
35
}
Bitrix\Catalog\Product\Store\CostPriceCalculator
Определения
costpricecalculator.php:20
Bitrix\Catalog\Store\EnableWizard\B24Enabler
Определения
b24enabler.php:9
Bitrix\Catalog\Store\EnableWizard\B24Enabler\enable
static enable(array $options=[])
Определения
b24enabler.php:10
Bitrix\Catalog\Store\EnableWizard\B24Enabler\disable
static disable()
Определения
b24enabler.php:25
Bitrix\Catalog\Store\EnableWizard\Enabler
Определения
enabler.php:23
Bitrix\Main\ORM\Data\Result
Определения
result.php:16
$options
$options
Определения
commerceml2.php:49
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\Catalog\Store\EnableWizard
Определения
b24enabler.php:3
Bitrix\Sale\Discount\Result
Определения
compatibleformat.php:2
bitrix
modules
catalog
lib
store
enablewizard
b24enabler.php
Создано системой
1.14.0