• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/model/schedule/schedule.php
  • Класс: BitrixTimemanModelScheduleSchedule
  • Вызов: Schedule::edit
public function edit(ScheduleForm $scheduleForm)
{
	$this->setName($scheduleForm->name);
	$this->setScheduleType($scheduleForm->type);
	$this->setReportPeriod($scheduleForm->reportPeriod);
	if ($scheduleForm->reportPeriodStartWeekDay !== null)
	{
		$this->setReportPeriodOptions([
			ScheduleTable::REPORT_PERIOD_OPTIONS_START_WEEK_DAY => $scheduleForm->reportPeriodStartWeekDay,
		]);
	}
	$this->setControlledActions($scheduleForm->controlledActions);
	$this->setIsForAllUsers((bool)$scheduleForm->isForAllUsers);
	$this->defineAllowedDevices($scheduleForm->allowedDevices);
	$this->setFlexibleScheduleSettings();
	$this->defineWorktimeRestrictions($scheduleForm->restrictionsForm);
}