1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
Определения
commandbatchexception.php:8
Bitrix\Sale\Exchange\Integration\Service\Command\Batch\Placement\getProxy
static getProxy()
Определения
placement.php:11
Bitrix\Sale\Exchange\Integration\Service\Command\Batch\Placement\binds
static binds(array $list)
Определения
placement.php:16
Bitrix\Sale\Exchange\Integration\Service\Command\Batch\Placement\unbinds
static unbinds(array $list)
Определения
placement.php:32
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\Sale\Exchange\Integration\Service\Command\IProxy
Определения
iproxy.php:6
$proxy
$proxy
Определения
proxy.php:11
Bitrix\Sale\Exchange\Integration\CRM\Placement
Определения
base.php:4
Bitrix\Sale\Exchange\Integration\Exception
Определения
batchableexception.php:4
Bitrix\Sale\Exchange\Integration\Service\Command\Batch
Определения
placement.php:2
Bitrix\Sale\Exchange\Integration
bitrix
modules
sale
lib
exchange
integration
service
command
batch
placement.php
Создано системой
1.14.0