EntityCounterManager::reset

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. EntityCounterManager
  4. reset
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/entitycountermanager.php
  • Класс: Bitrix\Crm\Counter\EntityCounterManager
  • Вызов: EntityCounterManager::reset
static function reset(array $codes, array $userIDs)
{
	$codes = array_unique($codes);
	if(!empty($userIDs))
	{
		foreach($userIDs as $userID)
		{
			foreach($codes as $code)
			{
				EntityCounter::resetByCode($code, $userID);
			}
		}
	}
	else
	{
		foreach($codes as $code)
		{
			EntityCounter::resetByCodeForAll($code);
		}
	}
}

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