Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
exportonecbase.php
1<?php
3
5
6abstract class ExportOneCBase extends ExportPattern
7{
8 const SHEM_VERSION_2_10 = '2.10';
9 const SHEM_VERSION_3_1 = '3.1';
10
14 public function outputXmlCMLHeader()
15 {
16 return "<?xml version=\"1.0\" encoding=\"windows-1251\"?>\n".
17 "<".
18 DocumentBase::getLangByCodeField("COM_INFORMATION")." ".
19 DocumentBase::getLangByCodeField("SHEM_VERSION")."=\"".$this->getShemVersion()."\" ".
20 DocumentBase::getLangByCodeField("SHEM_DATE_CREATE")."=\"".date("Y-m-d")."T".date("G:i:s")."\" ".
21 DocumentBase::getLangByCodeField("DATE_FORMAT")."=\"".
22 DocumentBase::getLangByCodeField("DATE_FORMAT_DF")."=yyyy-MM-dd; ".
23 DocumentBase::getLangByCodeField("DATE_FORMAT_DLF")."=DT\" ".
24 DocumentBase::getLangByCodeField("DATE_FORMAT_DATETIME")."=\"".
25 DocumentBase::getLangByCodeField("DATE_FORMAT_DF")."=".
26 DocumentBase::getLangByCodeField("DATE_FORMAT_TIME")."; ".
27 DocumentBase::getLangByCodeField("DATE_FORMAT_DLF")."=T\" ".
28 DocumentBase::getLangByCodeField("DEL_DT")."=\"T\" ".
29 DocumentBase::getLangByCodeField("FORM_SUMM")."=\"".
30 DocumentBase::getLangByCodeField("FORM_CC")."=18; ".
31 DocumentBase::getLangByCodeField("FORM_CDC")."=2; ".
32 DocumentBase::getLangByCodeField("FORM_CRD")."=.\" ".
33 DocumentBase::getLangByCodeField("FORM_QUANT")."=\"".
34 DocumentBase::getLangByCodeField("FORM_CC")."=18; ".
35 DocumentBase::getLangByCodeField("FORM_CDC")."=2; ".
36 DocumentBase::getLangByCodeField("FORM_CRD")."=.\"".
37 ">\n";
38 }
39
43 public function outputXmlCMLFooter()
44 {
45 return "</".DocumentBase::getLangByCodeField("COM_INFORMATION").">";
46 }
47
51 abstract protected function getShemVersion();
52
56 public function getDirectionType()
57 {
59 }
60}