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

	$this->history = History::getForPeriod($this->userId, $this->dateStart, $this->dateFinish);
	$this->timeline = UserChart::getReportOnDate($this->userId, $this->dateStart);
	$this->comment = ReportComment::getOnDate($this->userId, $this->dateStart);

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