• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/sectionslist.php
  • Класс: BitrixSaleTradingPlatformVkSectionsList
  • Вызов: SectionsList::getIblockIds
protected function getIblockIds($onlyMapped)
{
	$iblockIds = [];

	if ($onlyMapped)
	{
		$iblockIds = $this->getMappedIblocks();
	}
	else
	{
		if (Loader::includeModule('catalog'))
		{
			$iterator = BitrixCatalogCatalogIblockTable::getList([
				'select' => ['IBLOCK_ID'],
				'filter' => ['=PRODUCT_IBLOCK_ID' => 0],
			]);
			while ($row = $iterator->fetch())
			{
				$iblockIds[$row['IBLOCK_ID']] = $row['IBLOCK_ID'];
			}
		}
	}

return $iblockIds;
}