CCrmActivity::DoSaveEntityCommunicationSettings

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmActivity
  4. DoSaveEntityCommunicationSettings
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/mysql/crm_activity.php
  • Класс: \CCrmActivity
  • Вызов: CCrmActivity::DoSaveEntityCommunicationSettings
static function DoSaveEntityCommunicationSettings($entityTypeID, $entityID, $settings)
{
	global $DB;

	$entityTypeID = (int)$entityTypeID;
	$entityID = (int)$entityID;
	$settings = $DB->ForSql($settings);

	$tableName = self::COMMUNICATION_TABLE_NAME;
	$DB->Query(
		"UPDATE {$tableName} SET ENTITY_SETTINGS = '{$settings}' WHERE ENTITY_SETTINGS IS NULL AND ENTITY_TYPE_ID = {$entityTypeID} AND ENTITY_ID = {$entityID}",
		false,
		'File: '.__FILE__.'
Line: '.__LINE__ ); }

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