CCrmStatusRestProxy::innerGetList

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

	if(!is_array($order))
	{
		$order = array();
	}

	if(empty($order))
	{
		$order['sort'] = 'asc';
	}

	$results = array();
	$dbResult = CCrmStatus::GetList($order, $filter);
	if(is_object($dbResult))
	{
		while($item = $dbResult->Fetch())
		{
			self::prepareExtra($item);
			$results[] = $item;
		}
	}
	return $results;
}

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