Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
processresult.php
1<?php
2
4
6
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}