• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/monitor/history/history.php
  • Класс: BitrixTimemanMonitorHistoryHistory
  • Вызов: History::getComments
static function getComments(array $history): array
{
	$comments = [];
	foreach ($history['historyPackage'] as $entity)
	{
		if ($entity['comment'] === '' || $entity['comment'] === null)
		{
			continue;
		}

		$comments[] = [
			'USER_LOG_ID' => $entity['USER_LOG_ID'],
			'USER_ID' => User::getCurrentUserId(),
			'COMMENT' => $entity['comment'],
		];
	}

	return $comments;
}