CAllCrmQuote::CheckStorageElementExists

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

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

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