CAllCrmActivity::CheckStorageElementExists

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmActivity
  4. CheckStorageElementExists
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
  • Класс: \CAllCrmActivity
  • Вызов: CAllCrmActivity::CheckStorageElementExists
static function CheckStorageElementExists($activityID, $storageTypeID, $elementID)
{
	global $DB;
	$activityID = (int)$activityID;
	$storageTypeID = (int)$storageTypeID;
	$elementID = (int)$elementID;

	$dbResult = $DB->Query(
		'SELECT 1 FROM '.CCrmActivity::ELEMENT_TABLE_NAME.' WHERE ACTIVITY_ID = '.$activityID.' AND STORAGE_TYPE_ID = '.$storageTypeID.' AND ELEMENT_ID = '.$elementID,
		false,
		'File: '.__FILE__.'
Line: '.__LINE__ ); return is_array($dbResult->Fetch()); }

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