• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/form/schedule/violationform.php
  • Класс: BitrixTimemanFormScheduleViolationForm
  • Вызов: ViolationForm::__construct
public function __construct($violationRules = null)
{
	$this->timeHelper = TimeHelper::getInstance();
	if (is_null($violationRules))
	{
		return;
	}
	$this->id = $violationRules->getId();
	$this->scheduleId = $violationRules->getScheduleId();
	$this->scheduleId = $violationRules->getScheduleId();
	$this->entityCode = $violationRules->getEntityCode();
	$this->minExactEnd = $violationRules->getMinExactEnd();
	$this->maxExactStart = $violationRules->getMaxExactStart();
	$this->minOffsetEnd = $violationRules->getMinOffsetEnd();
	$this->maxOffsetStart = $violationRules->getMaxOffsetStart();
	$this->relativeStartFrom = $violationRules->getRelativeStartFrom();
	$this->relativeStartTo = $violationRules->getRelativeStartTo();
	$this->relativeEndFrom = $violationRules->getRelativeEndFrom();
	$this->relativeEndTo = $violationRules->getRelativeEndTo();
	$this->minDayDuration = $violationRules->getMinDayDuration();
	$this->maxAllowedToEditWorkTime = $violationRules->getMaxAllowedToEditWorkTime();
	$this->maxWorkTimeLackForPeriod = $violationRules->getMaxWorkTimeLackForPeriod();
	$this->maxShiftStartDelay = $violationRules->getMaxShiftStartDelay();
	$this->missedShiftStart = $violationRules->getMissedShiftStart();

	$this->startEndNotifyUsers = $violationRules->getNotifyUsersSymbolic(ViolationRulesTable::USERS_TO_NOTIFY_FIXED_START_END);
	$this->hoursPerDayNotifyUsers = $violationRules->getNotifyUsersSymbolic(ViolationRulesTable::USERS_TO_NOTIFY_FIXED_RECORD_TIME_PER_DAY);
	$this->editWorktimeNotifyUsers = $violationRules->getNotifyUsersSymbolic(ViolationRulesTable::USERS_TO_NOTIFY_FIXED_EDIT_WORKTIME);
	$this->hoursPerPeriodNotifyUsers = $violationRules->getNotifyUsersSymbolic(ViolationRulesTable::USERS_TO_NOTIFY_FIXED_TIME_FOR_PERIOD);
	$this->shiftTimeNotifyUsers = $violationRules->getNotifyUsersSymbolic(ViolationRulesTable::USERS_TO_NOTIFY_SHIFT_DELAY);
	$this->shiftCheckNotifyUsers = $violationRules->getNotifyUsersSymbolic(ViolationRulesTable::USERS_TO_NOTIFY_SHIFT_MISSED_START);
}