• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/worktime/violation/fixedscheduleviolationbuilder.php
  • Класс: BitrixTimemanServiceWorktimeViolationFixedScheduleViolationBuilder
  • Вызов: FixedScheduleViolationBuilder::buildEndViolations
protected function buildEndViolations()
{
	$record = $this->getRecord();
	if (!$this->issetProperty($record->getRecordedStopTimestamp()))
	{
		return [];
	}
	$violations = [];
	$recordedStopSeconds = $this->getTimeHelper()->convertUtcTimestampToDaySeconds(
		$record->getRecordedStopTimestamp(),
		$record->getStopOffset()
	);
	$violations = array_merge($violations, $this->buildOffsetStopViolations($recordedStopSeconds));
	$violations = array_merge($violations, $this->buildExactStopViolations($recordedStopSeconds));
	$violations = array_merge($violations, $this->buildRelativeStopViolations($recordedStopSeconds));

	return $violations;
}