Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
profiledocument.php
1
<?php
2
namespace
Bitrix\Sale\Exchange\OneC
;
3
4
use
Bitrix\Main\Localization\Loc
;
5
12
class
ProfileDocument
extends
UserProfileDocument
13
{
17
public
function
getTypeId
()
18
{
19
return
DocumentType::PROFILE
;
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
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\loadLanguageFile
static loadLanguageFile($file, $language=null, $normalize=true)
Definition
loc.php:224
Bitrix\Sale\Exchange\OneC\DocumentBase\openNodeDirectory
openNodeDirectory($level, $name)
Definition
documentbase.php:791
Bitrix\Sale\Exchange\OneC\DocumentBase\outputXmlAddress
outputXmlAddress($level, $addresses)
Definition
documentbase.php:973
Bitrix\Sale\Exchange\OneC\DocumentBase\$fields
$fields
Definition
documentbase.php:20
Bitrix\Sale\Exchange\OneC\DocumentBase\formatXMLNode
formatXMLNode($level, $name, $value, $parameters=array())
Definition
documentbase.php:803
Bitrix\Sale\Exchange\OneC\DocumentBase\closeNodeDirectory
closeNodeDirectory($level, $name)
Definition
documentbase.php:797
Bitrix\Sale\Exchange\OneC\DocumentType\PROFILE
const PROFILE
Definition
documenttype.php:17
Bitrix\Sale\Exchange\OneC\ProfileDocument
Definition
profiledocument.php:13
Bitrix\Sale\Exchange\OneC\ProfileDocument\outputXml
outputXml(array $fields, $level=0)
Definition
profiledocument.php:30
Bitrix\Sale\Exchange\OneC\ProfileDocument\getNameNodeDocument
getNameNodeDocument()
Definition
profiledocument.php:56
Bitrix\Sale\Exchange\OneC\ProfileDocument\getMessageExport
static getMessageExport()
Definition
profiledocument.php:25
Bitrix\Sale\Exchange\OneC\ProfileDocument\getTypeId
getTypeId()
Definition
profiledocument.php:17
Bitrix\Sale\Exchange\OneC\UserProfileDocument
Definition
userprofiledocument.php:7
Bitrix\Sale\Exchange\OneC
Definition
documents.php:2
modules
sale
lib
exchange
onec
profiledocument.php
Создано системой
1.10.0