• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/monitor/report/dayreport.php
  • Класс: BitrixTimemanMonitorReportDayReport
  • Вызов: DayReport::__construct
public function __construct(int $userId, Date $date)
{
	$this->userId = $userId;
	$this->date = $date;

	$this->history = History::getOnDate($this->userId, $this->date);
	$this->chartData = UserChart::getOnDate($this->userId, $this->date);
	$this->comment = ReportComment::getOnDate($this->userId, $this->date);

	if ($this->history)
	{
		$this->createReport();
	}
}