Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
profiledocument.php
1<?php
3
5
13{
17 public function getTypeId()
18 {
20 }
21
25 static protected function getMessageExport()
26 {
27 return Loc::loadLanguageFile($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/sale/general/export.php', self::CML_LANG_ID);
28 }
29
30 public function outputXml(array $fields, $level = 0)
31 {
32 $xml = '';
33 foreach ($fields as $name=>$value)
34 {
35 if(is_array($value))
36 {
37 switch ($name)
38 {
39 case 'REGISTRATION_ADDRESS':
40 case 'UR_ADDRESS':
41 case 'ADDRESS':
42 case 'CONTACTS':
43 case 'REPRESENTATIVES':
44 $xml .= $this->openNodeDirectory($level+2, $name);
45 $xml .= $this->outputXmlAddress($level+3, $value);
46 $xml .= $this->closeNodeDirectory($level+2, $name);
47 break;
48 }
49 }
50 else
51 $xml .= $this->formatXMLNode($level+2, $name, $value);
52 }
53 return $xml;
54 }
55
56 public function getNameNodeDocument()
57 {
58 return 'AGENT';
59 }
60}
static loadLanguageFile($file, $language=null, $normalize=true)
Definition loc.php:224
formatXMLNode($level, $name, $value, $parameters=array())