• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/site_template.php
  • Класс: CSiteTemplate
  • Вызов: CSiteTemplate::SaveDescription
static function SaveDescription($arFields = array(), $descPath)
{
	/** @global CMain $APPLICATION */
	global $APPLICATION;

	$arDescription = array(
		"NAME" => $arFields['NAME'],
		"DESCRIPTION" => $arFields['DESCRIPTION'],
		"SORT" => (intval($arFields['SORT']) > 0? intval($arFields['SORT']) : ''),
		"TYPE" => $arFields['TYPE']
	);
	if (isset($arFields['EDITOR_STYLES']))
		$arDescription["EDITOR_STYLES"] = $arFields['EDITOR_STYLES'];
	$APPLICATION->SaveFileContent($descPath, '<'.'?'."n$arTemplate = ".var_export($arDescription, 1).";n".'?'.'>');
}