• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/lib/entity/iblock.php
  • Класс: BitrixListsEntityIblock
  • Вызов: Iblock::get
public function get(array $navData = [])
{
	$this->param->checkRequiredInputParams(["IBLOCK_TYPE_ID"]);
	if ($this->param->hasErrors())
	{
		$this->errorCollection->add($this->param->getErrors());
		return [];
	}

	$iblocks = [];

	$filter = $this->getFilter();

	$order = $this->getOrder();

	$queryObject = CIBlock::getList($order, $filter);
	$queryObject->NavStart($navData);
	while ($result = $queryObject->fetch())
	{
		$iblocks[] = $result;
	}

	return [$iblocks, $queryObject];
}