Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/sale/lib/exchange/onec/ |
Upload File : |
<?php namespace Bitrix\Sale\Exchange\OneC; use Bitrix\Main\Localization\Loc; /** * Class ProfileDocument * @package Bitrix\Sale\Exchange\OneC * @deprecated * For backward compatibility */ class ProfileDocument extends UserProfileDocument { /** * @return int */ public function getTypeId() { return DocumentType::PROFILE; } /** * @return array */ static protected function getMessageExport() { return Loc::loadLanguageFile($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/sale/general/export.php', self::CML_LANG_ID); } public function outputXml(array $fields, $level = 0) { $xml = ''; foreach ($fields as $name=>$value) { if(is_array($value)) { switch ($name) { case 'REGISTRATION_ADDRESS': case 'UR_ADDRESS': case 'ADDRESS': case 'CONTACTS': case 'REPRESENTATIVES': $xml .= $this->openNodeDirectory($level+2, $name); $xml .= $this->outputXmlAddress($level+3, $value); $xml .= $this->closeNodeDirectory($level+2, $name); break; } } else $xml .= $this->formatXMLNode($level+2, $name, $value); } return $xml; } public function getNameNodeDocument() { return 'AGENT'; } }