• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/hot_keys.php
  • Класс: CHotKeysCode
  • Вызов: CHotKeysCode::Update
public function Update($ID, $arFields)
{
	if(!$this->CheckFields($arFields, $ID))
		return false;

	global $DB;

	$this->CleanCache();

	$strUpdate = $DB->PrepareUpdate("b_hot_keys_code", $arFields);

	if($strUpdate != "")
	{
		$strSql = "UPDATE b_hot_keys_code SET ".$strUpdate." WHERE ID=".intval($ID); //." AND IS_CUSTOM <> 0"
		if(!$DB->Query($strSql))
			return false;
	}
	return true;
}