CCrmLeadRestProxy::innerGetList

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmLeadRestProxy
  4. innerGetList
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmLeadRestProxy
  • Вызов: CCrmLeadRestProxy::innerGetList
protected function innerGetList($order, $filter, $select, $navigation, &$errors)
{
	if(!CCrmLead::CheckReadPermission(0))
	{
		$errors[] = 'Access denied.';
		return false;
	}

	$options = array('IS_EXTERNAL_CONTEXT' => true);
	if(is_array($order))
	{
		if(isset($order['STATUS_ID']))
		{
			$order['STATUS_SORT'] = $order['STATUS_ID'];
			unset($order['STATUS_ID']);

			$options['FIELD_OPTIONS'] = array('ADDITIONAL_FIELDS' => array('STATUS_SORT'));
		}
	}

	return CCrmLead::GetListEx($order, $filter, false, $navigation, $select, $options);
}

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