• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/internals/countercalculation.php
  • Класс: Bitrix\Sender\Internals\CounterCalculation
  • Вызов: CounterCalculation::wasCompleted
static function wasCompleted($stageCode = 'FINISH')
{
	$currentValue = Option::get('sender', self::$optionName, '');
	$stageValue = self::$stages[$stageCode];

	if($currentValue === '')
	{
		$currentValue = '100';
	}
	if($stageValue === '')
	{
		$stageValue = '100';
	}

	if(intval($currentValue) >= intval($stageValue))
	{
		return true;
	}
	else
	{
		return false;
	}
}