• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/base.php
  • Класс: BitrixIblockComponentBase
  • Вызов: Base::getRecommendationLimit
protected function getRecommendationLimit($ids)
{
	$limit = 0;
	$idsCount = count($ids);
	$rowsRange = $this->request->get('rowsRange');

	if (!empty($rowsRange))
	{
		foreach ($rowsRange as $range)
		{
			$range = (int)$range;

			if ($range > $idsCount)
			{
				$limit = $range - $idsCount;
				break;
			}
		}
	}
	else
	{
		$limit = $this->arParams['PAGE_ELEMENT_COUNT'] - $idsCount;
	}

	return $limit;
}