...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_external_sale_import.php
- Класс: \CCrmExternalSaleImport
- Вызов: CCrmExternalSaleImport::ParseOrderDataOrderContractorsRepresentatives
private function ParseOrderDataOrderContractorsRepresentatives($document) { if (!is_array($document["Representative"])) return null; $arResult = array(); foreach ($document["Representative"] as $arRepresentative) { $arRepresentative = $arRepresentative["#"]; if (is_array($arRepresentative)) { foreach ($arRepresentative as $arContractor) { $arResultTmp = array(); $arContractor = $arContractor["#"]; if (is_array($arContractor)) { foreach ($arContractor as $key => $value) { $value = $value[0]["#"]; switch ($key) { case 'Relation': $arResultTmp["RELATION"] = $value; break; case 'Id': $arResultTmp["ID"] = $value; break; case 'ItemName': $arResultTmp["NAME"] = $value; break; default: $arResultTmp[$key] = $value; break; } } } $arResult[] = $arResultTmp; } } } return $arResult; }