CAllCrmQuote::GetList

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmQuote
  4. GetList
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_quote.php
  • Класс: \CAllCrmQuote
  • Вызов: CAllCrmQuote::GetList
static function GetList($arOrder = array(), $arFilter = array(), $arGroupBy = false, $arNavStartParams = false, $arSelectFields = array(), $arOptions = array())
{
	if(!is_array($arOptions))
	{
		$arOptions = array();
	}

	if(!isset($arOptions['PERMISSION_SQL_TYPE']))
	{
		$arOptions['PERMISSION_SQL_TYPE'] = 'FROM';
		$arOptions['PERMISSION_SQL_UNION'] = 'DISTINCT';
	}

	$lb = new CCrmEntityListBuilder(
		CCrmQuote::DB_TYPE,
		CCrmQuote::TABLE_NAME,
		self::TABLE_ALIAS,
		self::GetFields(isset($arOptions['FIELD_OPTIONS']) ? $arOptions['FIELD_OPTIONS'] : null),
		self::$sUFEntityID,
		'QUOTE',
		array('CCrmQuote', 'BuildPermSql'),
		array('CCrmQuote', '__AfterPrepareSql')
	);

	return $lb->Prepare($arOrder, $arFilter, $arGroupBy, $arNavStartParams, $arSelectFields, $arOptions);
}

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