• Модуль: cluster
  • Путь к файлу: ~/bitrix/modules/cluster/classes/general/webnode.php
  • Класс: CClusterWebnode
  • Вызов: CClusterWebnode::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_webnode", $arFields);
	if($strUpdate <> '')
	{
		$strSql = "
			UPDATE b_cluster_webnode SET
			".$strUpdate."
			WHERE ID = ".$ID."
		";
		if(!$DB->Query($strSql, false, '', array('fixed_connection'=>true)))
			return false;
	}

	return true;
}