Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
statisticsprovider.php
1
<?php
2
3
4
namespace
Bitrix\Sale\Exchange\Integration\Service\Scenarios
;
5
6
7
use
Bitrix\Sale\Exchange\Integration\Service\Command\Line
;
8
9
class
StatisticsProvider
10
{
11
public
function
register
(array $params)
12
{
13
$result = Line\StatisticsProvider::getList([
'xmlId'
=>$params[
'xmlId'
]]);
14
15
if
($result[
'statisticProviders'
][0])
16
{
17
$providerId = $result[
'statisticProviders'
][0][
'id'
];
18
}
19
else
20
{
21
$providerId = Line\StatisticsProvider::add($params)[
'statisticProvider'
][
'id'
];
22
}
23
24
return
$providerId > 0;
25
}
26
}
Bitrix\Sale\Exchange\Integration\Service\Command\Line\StatisticsProvider
Definition
statisticsprovider.php:11
Bitrix\Sale\Exchange\Integration\Service\Command\Line
Definition
app.php:2
Bitrix\Sale\Exchange\Integration\Service\Scenarios
Definition
activityadd.php:2
modules
sale
lib
exchange
integration
service
scenarios
statisticsprovider.php
Создано системой
1.10.0