Umfragen
edit.schedule.handle.php
Go to the documentation of this file.
1 <?php
2 /*
3  * edit.matrix.handle.php
4  *
5  * Copyright 2012 Johannes <jojo@jojo-42>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20  * MA 02110-1301, USA.
21  *
22  *
23  */
24 if ( (isset($widget)) ){
25  $all_err_reason = array();
26 
27 
28  $r = $widget->handle_date_list_edit();
29  if($r !== true){
30  $all_err_reason[] = $r;
31  }else{
32  foreach( $widget->widget_list as $child ){
33  $child->save_dispName($db);
34  }
35  }
36 
37 
38  $r = $widget->handle_other_participants_edit();
39  $r2 = $widget->handle_participation_statistics_edit();
40  $r3 = $widget-> handle_username_edit();
41  if( $poll->type == POLLTYPE_ADVANCED ){
42  $r4 = $widget->handle_value_edit();
43  }else{
44  $r4 = true;
45  }
46  if( $r !== true ){
47  $all_err_reason[] = $r;
48  }
49  if( $r2 !== true ){
50  $all_err_reason[] = $r2;
51  }
52  if( $r3 !== true ){
53  $all_err_reason[] = $r3;
54  }
55  if( $r4 !== true ){
56  $all_err_reason[] = $r4;
57  }
58  if( ($r === true) OR ($r2 === true) OR ($r3 === true) OR ($r4 === true) ){
59  $widget->save_config($db);
60  }
61 
62 
63 }
64 ?>
65