• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/report/handler/lead.php
  • Класс: Bitrix\Crm\Integration\Report\Handler\Lead
  • Вызов: Lead::isConversionCalculateMode
private function isConversionCalculateMode()
{
	$result = false;
	$viewKey = $this->getView()->getKey();
	if ($viewKey === ColumnFunnel::VIEW_KEY)
	{
		$funnelCalculateModeField = $this->getWidgetHandler()->getFormElement('calculateMode');
		$funnelCalculateModeValue = $funnelCalculateModeField->getValue();
		if ($funnelCalculateModeValue === ColumnFunnel::CONVERSION_CALCULATE_MODE)
		{
			$result = true;
		}
	}
	elseif ($viewKey === FunnelGrid::VIEW_KEY)
	{
		$gridCalculationModeField = $this->getWidgetHandler()->getFormElement('calculateMode');
		$gridCalculationModeValue = $gridCalculationModeField->getValue();
		if ($gridCalculationModeValue === FunnelGrid::CONVERSION_CALCULATE_MODE)
		{
			$result = true;
		}
	}

	return $result;
}