• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/monitor/report/dayreport.php
  • Класс: BitrixTimemanMonitorReportDayReport
  • Вызов: DayReport::getData
public function getData(): array
{
	$culture = Context::getCurrent()->getCulture();

	$userInfo = User::getInfo($this->userId);

	return [
		'info' => [
			'date' => [
				'value' => $this->date->format('Y-m-d'),
				'format' => [
					'short' => $culture->getShortDateFormat(),
					'long' => $culture->getLongDateFormat(),
				],
			],
			'user' => [
				'id' => $userInfo['id'],
				'fullName' => $userInfo['name'],
				'icon' => $userInfo['icon'],
				'link' => $userInfo['link'],
			],
			'reportComment' => $this->comment,
		],
		'timeline' => $this->timeline,
		'report' => $this->report,
	];
}