Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
processresult.php
1
<?php
2
3
namespace
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Processors
;
4
5
use
Bitrix\Main\ArgumentNullException
;
6
7
class
ProcessResult
extends
DataProcessor
8
{
9
public
function
process
($data)
10
{
11
if
(!isset($data[
"RESULT_ID"
]))
12
throw
new
ArgumentNullException
(
"data[\"RESULT_ID\"]"
);
13
14
$id = $data[
"RESULT_ID"
];
15
unset($data[
"RESULT_ID"
]);
16
17
if
(isset($data[
"PROCESSING_REQUEST_ID"
]) || isset($data[
"PROCESSING_RESULT"
]))
18
$fields = $data;
19
else
20
$fields = array(
21
"PROCESSING_REQUEST_ID"
=>
"-"
,
22
"PROCESSING_RESULT"
=>
"-"
23
);
24
25
return \Bitrix\Sale\TradingPlatform\Ebay\Feed\ResultsTable::update($id, $fields);
26
}
27
}
Bitrix\Main\ArgumentNullException
Definition
exception.php:54
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Processors\DataProcessor
Definition
dataprocessor.php:6
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Processors\ProcessResult
Definition
processresult.php:8
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Processors\ProcessResult\process
process($data)
Definition
processresult.php:9
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Processors
Definition
dataprocessor.php:3
modules
sale
lib
tradingplatform
ebay
feed
data
processors
processresult.php
Создано системой
1.10.0