• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/action/entity/searchaction.php
  • Класс: Bitrix\Crm\Controller\Action\Entity\SearchAction
  • Вызов: SearchAction::provideLimits
protected function provideLimits($searchQuery, array $options = null)
{
	if ($options === null)
	{
		$options = [];
	}

	$entityTypeIds = $this->prepareSearchEntityTypeIds($options);

	$searchRestriction = RestrictionManager::getSearchLimitRestriction();
	$limits = [];

	foreach ($entityTypeIds as $entityTypeId)
	{
		if ($searchRestriction->isExceeded($entityTypeId))
		{
			$limits[] = self::prepareLimitExceededError($entityTypeId);
		}
	}

	return $limits;
}