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