• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/util/process.php
  • Класс: BitrixSaleLocationUtilis
  • Вызов: is::getBlock
protected function getBlock($from)
{
	$step = $this->step;

	for($i = 0; $i < $step; $i++)
		next($from);

	$block = array();
	$hadSmth = false;

	for($i = $step; $i <= $step + $this->getCurrStageStepSize(); $i++)
	{
		$code = key($from);

		if(!isset($code))
		{
			break;
		}

		$elem = current($from);
		next($from);

		$hadSmth = true;
		$block[$code] = $elem;

		$this->nextStep();
	}

	if(!$hadSmth)
	{
		$this->nextStage();
		return false;
	}

	return $block;
}