• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/short_uri.php
  • Класс: CBXAllShortUri
  • Вызов: CBXAllShortUri::Update
static function Update($id, $arFields)
{
	global $DB;

	self::ClearErrors();

	$id = intval($id);
	if ($id <= 0)
	{
		self::AddError(GetMessage("MN_SU_NO_ID"));
		return false;
	}

	if (!self::ParseFields($arFields, $id))
		return false;

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

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