• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/service/worktime/violation/fixedscheduleviolationbuilder.php
  • Класс: BitrixTimemanServiceWorktimeViolationFixedScheduleViolationBuilder
  • Вызов: FixedScheduleViolationBuilder::buildStartViolations
protected function buildStartViolations()
{
	$record = $this->getRecord();
	$violations = [];
	$recordedStartSeconds = $this->getTimeHelper()->convertUtcTimestampToDaySeconds(
		$record->getRecordedStartTimestamp(),
		$record->getStartOffset()
	);

	$violations = array_merge($violations, $this->buildOffsetStartViolations($recordedStartSeconds));
	$violations = array_merge($violations, $this->buildExactStartViolations($recordedStartSeconds));
	$violations = array_merge($violations, $this->buildRelativeStartViolations($recordedStartSeconds));

	return $violations;
}