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

		$absence[] = [
			'USER_LOG_ID' => $entity['USER_LOG_ID'],
			'TIME_START' => new DateTime($entity['timeStart'], DateTimeInterface::RFC3339),
		];
	}

	return $absence;
}