CCrmProductSectionRestProxy::innerGet

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

	$result = CCrmProductSection::GetByID($ID);
	if(!is_array($result))
	{
		$errors[] = 'Product section is not found.';
		return null;
	}

	return $result;
}

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