• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/classes/general/timeman_user.php
  • Класс: CTimeManUser
  • Вызов: CTimeManUser::buildStopForm
private function buildStopForm($timestamp, $report, $extraInformation)
{
	$recordForm = $this->createWorktimeRecordForm();
	$recordForm->recordedStopSeconds = $timestamp > 0 ? $timestamp : null;
	$recordForm->getFirstEventForm()->reason = $report;
	$recordForm->latitudeClose = $extraInformation['LAT_CLOSE'];
	$recordForm->longitudeClose = $extraInformation['LON_CLOSE'];
	$recordForm->ipClose = $_SERVER['REMOTE_ADDR'];
	$recordForm->device = $extraInformation['DEVICE'];
	$recordForm->recordedStopDateFormatted = isset($extraInformation['CUSTOM_DATE']) ? $extraInformation['CUSTOM_DATE'] : null;
	return $recordForm;
}