- Модуль: iblock
- Путь к файлу: ~/bitrix/modules/iblock/classes/general/cml2.php
- Класс: CIBlockCMLExport
- Вызов: CIBlockCMLExport::exportInheritedTemplates
function exportInheritedTemplates($level, BitrixIblockInheritedPropertyBaseTemplate $template)
{
$templates = $template->get();
if (!empty($templates))
{
$ws = str_repeat("t", $level);
fwrite($this->fp, $ws."<".GetMessage("IBLOCK_XML2_INHERITED_TEMPLATES").">n");
foreach ($templates as $CODE => $TEMPLATE)
{
fwrite($this->fp, $ws."t<".GetMessage("IBLOCK_XML2_TEMPLATE").">n");
fwrite($this->fp, $ws."tt<".GetMessage("IBLOCK_XML2_ID").">".htmlspecialcharsbx($CODE)."".GetMessage("IBLOCK_XML2_ID").">n");
fwrite($this->fp, $ws."tt<".GetMessage("IBLOCK_XML2_VALUE").">".htmlspecialcharsbx($TEMPLATE["TEMPLATE"])."".GetMessage("IBLOCK_XML2_VALUE").">n");
fwrite($this->fp, $ws."t".GetMessage("IBLOCK_XML2_TEMPLATE").">n");
}
fwrite($this->fp, $ws."".GetMessage("IBLOCK_XML2_INHERITED_TEMPLATES").">n");
}
}