Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
placement.php
1
<?php
2
namespace
Bitrix\Sale\Exchange\Integration\Service\Command\Batch
;
3
4
5
use
Bitrix\Sale\Exchange\Integration
;
6
use
Bitrix\Sale\Exchange\Integration\Exception
;
7
8
class
Placement
9
implements
Integration\Service\Command\IProxy
10
{
11
static
public
function
getProxy
()
12
{
13
return
new
Integration\Rest\RemoteProxies\CRM\Placement
();
14
}
15
16
static
public
function
binds
(array $list)
17
{
18
$proxy = static::getProxy();
19
$r = $proxy->binds($list);
20
if
($r->isSuccess())
21
{
22
$result = $r->getData()[
'DATA'
][
'result'
];
23
}
24
else
25
{
26
throw
new
Exception\CommandBatchException
(implode(
','
, $r->getErrorMessages()));
27
}
28
29
return
$result;
30
}
31
32
static
public
function
unbinds
(array $list)
33
{
34
$proxy = static::getProxy();
35
$r = $proxy->unbinds($list);
36
if
($r->isSuccess())
37
{
38
$result = $r->getData()[
'DATA'
][
'result'
];
39
}
40
else
41
{
42
throw
new
Exception\CommandBatchException
(implode(
','
, $r->getErrorMessages()));
43
}
44
45
return
$result;
46
}
47
}
Bitrix\Sale\Exchange\Integration\Exception\CommandBatchException
Definition
commandbatchexception.php:8
Bitrix\Sale\Exchange\Integration\Rest\RemoteProxies\CRM\Placement
Definition
placement.php:11
Bitrix\Sale\Exchange\Integration\Service\Command\Batch\Placement
Definition
placement.php:10
Bitrix\Sale\Exchange\Integration\Service\Command\Batch\Placement\getProxy
static getProxy()
Definition
placement.php:11
Bitrix\Sale\Exchange\Integration\Service\Command\Batch\Placement\binds
static binds(array $list)
Definition
placement.php:16
Bitrix\Sale\Exchange\Integration\Service\Command\Batch\Placement\unbinds
static unbinds(array $list)
Definition
placement.php:32
Bitrix\Sale\Exchange\Integration\Service\Command\IProxy
Definition
iproxy.php:6
Bitrix\Sale\Exchange\Integration\Exception
Definition
batchableexception.php:4
Bitrix\Sale\Exchange\Integration\Service\Command\Batch
Definition
placement.php:2
Bitrix\Sale\Exchange\Integration
modules
sale
lib
exchange
integration
service
command
batch
placement.php
Создано системой
1.10.0