• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/elementlist.php
  • Класс: BitrixIblockComponentElementList
  • Вызов: ElementList::initNavParams
protected function initNavParams()
{
	if ($this->isPaginationMode())
	{
		if (
			$this->arParams['PAGE_ELEMENT_COUNT'] > 0
			&& (
				$this->arParams['DISPLAY_TOP_PAGER']
				|| $this->arParams['DISPLAY_BOTTOM_PAGER']
				|| $this->arParams['LAZY_LOAD'] === 'Y'
			)
		)
		{
			$this->navParams = array(
				'nPageSize' => $this->arParams['PAGE_ELEMENT_COUNT'],
				'bDescPageNumbering' => $this->arParams['PAGER_DESC_NUMBERING'],
				'bShowAll' => $this->arParams['PAGER_SHOW_ALL']
			);
			$this->navigation = CDBResult::GetNavParams($this->navParams);

			if ($this->navigation['PAGEN'] == 0 && $this->arParams['PAGER_DESC_NUMBERING_CACHE_TIME'] > 0)
			{
				$this->arParams['CACHE_TIME'] = $this->arParams['PAGER_DESC_NUMBERING_CACHE_TIME'];
			}
		}
		else
		{
			$this->navParams = array(
				'nTopCount' => $this->arParams['PAGE_ELEMENT_COUNT'],
				'bDescPageNumbering' => $this->arParams['PAGER_DESC_NUMBERING'],
			);
			$this->navigation = false;
		}
	}
	else
	{
		$this->navParams = array('nTopCount' => $this->arParams['PAGE_ELEMENT_COUNT']);
		$this->navigation = false;
	}
}