• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/controller/schedule.php
  • Класс: BitrixTimemanControllerSchedule
  • Вызов: Schedule::updateAction
public function updateAction()
{
	$scheduleForm = new ScheduleForm();

	if ($scheduleForm->load($this->getRequest()) && $scheduleForm->validate())
	{
		$result = (new ScheduleHandlerUpdateHandler())->handle($scheduleForm);

		if (BaseServiceResult::isSuccessResult($result))
		{
			return $this->makeResult($result);
		}
		$this->addErrors($result->getErrors());
		return [];
	}
	$this->addError($scheduleForm->getFirstError());
}