CCrmDealCategoryProxy::innerGetList

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

	$params = array();
	if(is_array($order) && !empty($order))
	{
		$params['order'] = $order;
	}

	if(is_array($filter) && !empty($filter))
	{
		$params['filter'] = $filter;
	}

	if(is_array($select) && !empty($select))
	{
		$params['select'] = $select;
	}

	/** @var Main\DB\Result $dbResult */
	$dbResult = DealCategory::getList($params);
	$items = array();
	while($fields = $dbResult->fetch())
	{
		$items[] = $fields;
	}
	return $items;
}

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