• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/lighter/lighter.php
  • Класс: Bitrix\Crm\Counter\Lighter\Lighter
  • Вызов: Lighter::codesToResetGenerator
private function codesToResetGenerator(array $codeGeneratorParams): array
{
	$result = [];

	foreach ($codeGeneratorParams as $ownerTypeId => $categories)
	{
		foreach ($categories as $categoryId => $responsibleIds)
		{
			$extras = [];
			if ($categoryId !== 'None')
			{
				$extras['CATEGORY_ID'] = $categoryId;
			}

			$codes = EntityCounterManager::prepareCodes(
				$ownerTypeId,
				EntityCounterType::getAll(true),
				$extras
			);
			$result[] = [$codes, array_unique($responsibleIds)];
		}
	}

	return $result;
}