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

	$ID = intval($ID);
	if ($ID < 1) return false;

	$bCheckRights = true;
	if (isset($arParams['CHECK_PERMISSIONS']) && ($arParams['CHECK_PERMISSIONS'] === 'N'))
		$bCheckRights = false;

	if (CCertification::CheckFields($arFields, $ID, $bCheckRights))
	{
		unset($arFields["ID"]);
		unset($arFields["STUDENT_ID"]);
		unset($arFields["COURSE_ID"]);

		$arBinds=Array(
			//""=>$arFields[""]
		);

		CLearnHelper::FireEvent('OnBeforeCertificateUpdate', $arFields);

		$strUpdate = $DB->PrepareUpdate("b_learn_certification", $arFields, "learning");
		$strSql = "UPDATE b_learn_certification SET ".$strUpdate." WHERE ID=".$ID;
		$DB->QueryBind($strSql, $arBinds, false, "File: ".__FILE__."
Line: ".__LINE__); CLearnHelper::FireEvent('OnAfterCertificateUpdate', $arFields); return true; } return false; }