Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
app.php
1
<?php
2
namespace
Bitrix\Sale\Exchange\Integration\Service\Command\Line
;
3
4
5
use
Bitrix\Sale\Exchange\Integration
;
6
use
Bitrix\Sale\Exchange\Integration\Exception
;
7
8
class
App
9
implements
Integration\Service\Command\IProxy
10
{
11
static
public
function
getProxy
()
12
{
13
return
new
Integration\Rest\RemoteProxies\CRM\App
();
14
}
15
16
static
public
function
optionSet
(array $option)
17
{
18
$proxy = static::getProxy();
19
$r = $proxy->optionSet($option);
20
if
($r->isSuccess())
21
{
22
$result = $r->getData()[
'DATA'
][
'result'
];
23
}
24
else
25
{
26
throw
new
Exception\CommandLineException
(implode(
','
, $r->getErrorMessages()));
27
}
28
29
return
$result;
30
}
31
}
Bitrix\Sale\Exchange\Integration\Exception\CommandLineException
Definition
commandlineexception.php:8
Bitrix\Sale\Exchange\Integration\Rest\RemoteProxies\CRM\App
Definition
app.php:11
Bitrix\Sale\Exchange\Integration\Service\Command\Line\App
Definition
app.php:10
Bitrix\Sale\Exchange\Integration\Service\Command\Line\App\optionSet
static optionSet(array $option)
Definition
app.php:16
Bitrix\Sale\Exchange\Integration\Service\Command\Line\App\getProxy
static getProxy()
Definition
app.php:11
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\Line
Definition
app.php:2
Bitrix\Sale\Exchange\Integration
modules
sale
lib
exchange
integration
service
command
line
app.php
Создано системой
1.10.0