Controller::getNavData

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Controller
  4. getNavData
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/controller.php
  • Класс: Bitrix\Crm\Controller\Controller
  • Вызов: Controller::getNavData
static function getNavData($start, $orm = false)
{
	if($start >= 0)
	{
		return ($orm ?
			['limit' => \IRestService::LIST_LIMIT, 'offset' => intval($start)]
			:['nPageSize' => \IRestService::LIST_LIMIT, 'iNumPage' => intval($start / \IRestService::LIST_LIMIT) + 1]
		);
	}
	else
	{
		return ($orm ?
			['limit' => \IRestService::LIST_LIMIT]
			:['nTopCount' => \IRestService::LIST_LIMIT]
		);
	}
}

Добавить комментарий