• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/form/schedule/shiftform.php
  • Класс: BitrixTimemanFormScheduleShiftForm
  • Вызов: ShiftForm::__construct
public function __construct(?Shift $shift = null)
{
	$this->timeHelper = TimeHelper::getInstance();
	if ($shift)
	{
		$this->name = $shift->getName();
		$this->breakDuration = $shift->getBreakDuration();
		$this->startTime = $shift->getWorkTimeStart();
		$this->endTime = $shift->getWorkTimeEnd();
		$this->workDays = $shift->getWorkDays();
		$this->shiftId = $shift->getId();
	}
}