CAllCrmLead::GetListEx

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmLead
  4. GetListEx
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_lead.php
  • Класс: \CAllCrmLead
  • Вызов: CAllCrmLead::GetListEx
static function GetListEx($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(
		CCrmLead::DB_TYPE,
		CCrmLead::TABLE_NAME,
		self::TABLE_ALIAS,
		self::GetFields(isset($arOptions['FIELD_OPTIONS']) ? $arOptions['FIELD_OPTIONS'] : null),
		self::$sUFEntityID,
		'LEAD',
		array('CCrmLead', 'BuildPermSql'),
		array('CCrmLead', '__AfterPrepareSql')
	);

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

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