/** * Save the schedule. */ function saveScheduleLayout($args, &$request) { $this->validate(); $this->setupTemplate($request, true); $schedConf =& $request->getSchedConf(); import('classes.manager.form.scheduler.ScheduleLayoutForm'); $scheduleLayoutForm = new ScheduleLayoutForm(); $scheduleLayoutForm->readInputData(); if ($scheduleLayoutForm->validate()) { $scheduleLayoutForm->execute(); $request->redirect(null, null, null, 'scheduler'); } else { $scheduleLayoutForm->display(); } }
/** * Save the schedule. */ function saveScheduleLayout() { $this->validate(); $this->setupTemplate(true); $schedConf =& Request::getSchedConf(); import('manager.form.scheduler.ScheduleLayoutForm'); $scheduleLayoutForm = new ScheduleLayoutForm(); $scheduleLayoutForm->readInputData(); if ($scheduleLayoutForm->validate()) { $scheduleLayoutForm->execute(); Request::redirect(null, null, null, 'scheduler'); } else { $scheduleLayoutForm->display(); } }