• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/views/jscomponent/activity.php
  • Класс: BitrixReportVisualConstructorViewsJsComponentActivity
  • Вызов: Activity::getHourList
protected function getHourList()
{
	$result = array();
	for ($i = 1; $i <= 24; $i++)
	{
		$hour = array(
			'id' => $i,
			'name' => $i
		);
		if ($i === 0 || $i === 24 || ($i) % 6 == 0)
		{
			$hour['show'] = true;
		}

		if ($i >= 9 && $i <= 18)
		{
			$hour['active'] = true;
		}
		$result[] = $hour;
	}
	return $result;
}