• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/classes/general/restentity.php
  • Класс: CBitrixRestEntity
  • Вызов: CBitrixRestEntity::getIBlock
static function getIBlock($code, $bSkipCheck = false)
{
	$dbRes = CIBlock::GetList(array(), array(
		'=TYPE' => self::getIBlockType(),
		'=CODE' => $code,
	));

	$arRes = $dbRes->Fetch();
	if(!$arRes && !$bSkipCheck)
	{
		self::checkIblockType();
		return self::getIBlock($code, true);
	}

	return $arRes;
}