1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
processresult.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Converters;
4
5use Bitrix\Main\ArgumentNullException;
6
8{
9 public function convert($data)
10 {
11 if(!isset($data["RESULT_ID"]))
12 throw new ArgumentNullException("data[\"RESULT_ID\"]");
13
14 if(!isset($data["CONTENT"]))
15 throw new ArgumentNullException("data[\"CONTENT\"]");
16
17 $result["RESULT_ID"] = $data["RESULT_ID"];
18
19 if((string)$data["CONTENT"] !== '')
20 {
21 $strings = explode("\n", $data["CONTENT"]);
22 $fields = array();
23
24 if(is_array($strings))
25 {
26 foreach($strings as $string)
27 {
28 $info = json_decode($string, true);
29
30 if(mb_strpos($info["message"], "Processing Request #") !== false)
31 $fields["PROCESSING_REQUEST_ID"] = mb_substr($info["message"], 20);
32 elseif(mb_strpos($info["message"], "Processing Complete") !== false)
33 $fields["PROCESSING_RESULT"] = "Complete";
34 }
35
36 if(!empty($fields))
37 $result = array_merge($result, $fields);
38 }
39 }
40
41 return $result;
42 }
43}
$data['IS_AVAILABLE']
Определения .description.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
if($NS['step']==6) if( $NS[ 'step']==7) if(COption::GetOptionInt('main', 'disk_space', 0) > 0) $info
Определения backup.php:924
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393
$fields
Определения yandex_run.php:501