• Модуль: cluster
  • Путь к файлу: ~/bitrix/modules/cluster/classes/general/group.php
  • Класс: CClusterGroup
  • Вызов: CClusterGroup::Update
function Update($ID, $arFields)
{
	global $DB;
	$ID = intval($ID);

	if($ID <= 0)
		return false;

	if(!$this->CheckFields($arFields, $ID))
		return false;

	$strUpdate = $DB->PrepareUpdate("b_cluster_group", $arFields);
	if($strUpdate <> '')
	{
		$strSql = "
			UPDATE b_cluster_group SET
			".$strUpdate."
			WHERE ID = ".$ID."
		";
		if(!$DB->Query($strSql, false, '', array('fixed_connection'=>true)))
			return false;
	}

	return true;
}