• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/classes/general/timeman_report_full.php
  • Класс: CUserReportFull
  • Вызов: CUserReportFull::addCurrentReport
private function addCurrentReport(array $entriesInfo): array
{
	$queryObject = CTimeManReport::getList(
		['ID' => 'ASC'],
		['ENTRY_ID' => $entriesInfo['ID'], 'REPORT_TYPE' => 'REPORT']
	);
	if ($currentReport = $queryObject->fetch())
	{
		$reportDate = ConvertTimeStamp(time(),'SHORT');
		$entriesInfo['REPORT'] = $entriesInfo['REPORT'] ?? '';
		if (
			strpos($entriesInfo['REPORT'], $reportDate) === false
			&& !empty($currentReport['REPORT'] ?? null)
		)
		{
			$entriesInfo['REPORT'] .= $this->getReportMessageHtml($reportDate, $currentReport['REPORT']);
		}
	}

	return $entriesInfo;
}