CCrmEvent::GetListEx

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmEvent
  4. GetListEx
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_event.php
  • Класс: \CCrmEvent
  • Вызов: CCrmEvent::GetListEx
static function GetListEx($arOrder = array(), $arFilter = array(), $arGroupBy = false, $arNavStartParams = false, $arSelectFields = array(), $arOptions = array())
{
	$operationInfo = Crm\UI\Filter\EntityHandler::findFieldOperation('ENTITY', $arFilter);
	if(is_array($operationInfo) && $operationInfo['OPERATION'] === '=')
	{
		$ary = explode('_', $operationInfo['CONDITION']);
		if(count($ary) === 2)
		{
			$arFilter['ENTITY_TYPE'] = CUserTypeCrm::GetLongEntityType($ary[0]);
			$arFilter['ENTITY_ID'] = intval($ary[1]);
		}
	}

	$lb = new CCrmEntityListBuilder(
		'mysql',
		'b_crm_event_relations',
		'CER',
		self::GetFields(),
		'',
		'',
		array('CCrmEvent', 'BuildPermSql')
	);
	//HACK:: override user fields data for unserialize file IDs
	$lb->SetUserFields(array('FILES' => array('MULTIPLE' => 'Y')));
	return $lb->Prepare($arOrder, $arFilter, $arGroupBy, $arNavStartParams, $arSelectFields, $arOptions);
}

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