• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockelement.php
  • Класс: CAllIBlockElement
  • Вызов: CAllIBlockElement::__GetDescriptionUpdateSql
static function __GetDescriptionUpdateSql($iblock_id, $property_id, $description = false)
{
	global $DB;
	$tableFields = $DB->GetTableFields("b_iblock_element_prop_s".$iblock_id);
	if (isset($tableFields["DESCRIPTION_".$property_id]))
	{
		if ($description !== false)
			$sqlValue = "'".$DB->ForSQL($description, 255)."'";
		else
			$sqlValue = "null";
		return ", DESCRIPTION_".$property_id."=".$sqlValue;
	}
	else
	{
		return "";
	}
}