• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/fields/valuable/timeperiod.php
  • Класс: BitrixReportVisualConstructorFieldsValuableTimePeriod
  • Вызов: TimePeriod::normalise
protected function normalise($config)
{
	if (isset($config['type']))
	{
		return array(
			'type' => $config['type'],
			'month' => !empty($config['month']) ? $config['month'] : $this->getCurrentMonth(),
			'quarter' => !empty($config['quarter']) ? $config['quarter'] : $this->getCurrentQuarter(),
			'year' => !empty($config['year']) ? $config['year'] : $this->getCurrentYear(),
		);
	}
	else
	{
		return $this->getDefaultConfigValue();
	}
}