CCrmEvent::SetAssignedByElement

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmEvent
  4. SetAssignedByElement
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_event.php
  • Класс: \CCrmEvent
  • Вызов: CCrmEvent::SetAssignedByElement
public function SetAssignedByElement($assignedId, $entityType, $entityId)
{
	global $DB;

	$err_mess = (self::err_mess()).'
Function: SetAssignedByElement
Line: '; $assignedId = intval($assignedId); $entityId = intval($entityId); if ($entityType == '' || $entityId == 0) return false; $res = $DB->Query("UPDATE b_crm_event_relations SET ASSIGNED_BY_ID = $assignedId WHERE ENTITY_TYPE = '".$DB->ForSql($entityType)."' AND ENTITY_ID = '$entityId'", false, $err_mess.__LINE__); return $res; }

Добавить комментарий