• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/historyservice.php
  • Класс: CBPHistoryService
  • Вызов: CBPHistoryService::updateHistory
public function updateHistory($id, $arFields)
{
	global $DB;

	$id = intval($id);
	if ($id <= 0)
		throw new CBPArgumentNullException("id");

	self::ParseFields($arFields, $id);

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

	$strSql =
		"UPDATE b_bp_history SET ".
		"	".$strUpdate.", ".
		"	MODIFIED = ".$DB->CurrentTimeFunction()." ".
		"WHERE ID = ".intval($id)." ";
	$DB->Query($strSql, False, "File: ".__FILE__."
Line: ".__LINE__); return $id; }