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

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

	unset($arFields["USER_ID"]);

	if (CStudent::CheckFields($arFields, $ID))
	{

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

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

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