Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
results.php
1
<?php
2
3
namespace
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Converters
;
4
5
use
Bitrix\Main\ArgumentNullException
;
6
7
class
Results
extends
DataConverter
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[
"ARRAY"
]= \Bitrix\Sale\TradingPlatform\Xml2Array::convert($data[
"CONTENT"
]);
18
$result[
"RESULT_ID"
] = $data[
"RESULT_ID"
];
19
$result[
"XML"
] = $data[
"CONTENT"
] <>
''
? $data[
"CONTENT"
] :
"<?xml version='1.0' encoding='UTF-8'?>"
;
20
21
return
$result;
22
}
23
}
Bitrix\Main\ArgumentNullException
Definition
exception.php:54
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Converters\DataConverter
Definition
dataconverter.php:6
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Converters\Results
Definition
results.php:8
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Converters\Results\convert
convert($data)
Definition
results.php:9
Bitrix\Sale\TradingPlatform\Ebay\Feed\Data\Converters
Definition
dataconverter.php:3
modules
sale
lib
tradingplatform
ebay
feed
data
converters
results.php
Создано системой
1.10.0