コード例 #1
0
ファイル: SchedulerHandler.inc.php プロジェクト: artkuo/ocs
 /**
  * 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();
     }
 }
コード例 #2
0
ファイル: SchedulerHandler.inc.php プロジェクト: sedici/ocs
 /**
  * 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();
     }
 }