• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/integrations/report/handlers/treatment.php
  • Класс: BitrixImOpenLinesIntegrationsReportHandlersTreatment
  • Вызов: Treatment::getQueryInstance
public function getQueryInstance()
{
	$whatWillCalculate = $this->getFormElement('calculate');
	$whatWillCalculateValue = $whatWillCalculate->getValue();
	switch ($whatWillCalculateValue)
	{
		case self::WHAT_WILL_CALCULATE_ALL_TREATMENT_BY_HOUR:
			$query = new Query(TreatmentByHourStatTable::getEntity());
			break;
		default:
			$query = parent::getQueryInstance();
	}
	return $query;
}